|
|
@ -44,9 +44,9 @@ MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
|
|
|
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
|
|
|
|
|
|
|
|
GET_TARGET_PROPERTY(_targetType ${_PCH_current_target} TYPE)
|
|
|
|
GET_TARGET_PROPERTY(_targetType ${_PCH_current_target} TYPE)
|
|
|
|
IF(${_targetType} STREQUAL SHARED_LIBRARY AND NOT WIN32)
|
|
|
|
IF((${_targetType} STREQUAL SHARED_LIBRARY) OR (${_targetType} STREQUAL MODULE_LIBRARY))
|
|
|
|
LIST(APPEND ${_out_compile_flags} "-fPIC")
|
|
|
|
LIST(APPEND ${_out_compile_flags} "-fPIC")
|
|
|
|
ENDIF(${_targetType} STREQUAL SHARED_LIBRARY AND NOT WIN32)
|
|
|
|
ENDIF((${_targetType} STREQUAL SHARED_LIBRARY) OR (${_targetType} STREQUAL MODULE_LIBRARY))
|
|
|
|
|
|
|
|
|
|
|
|
ELSE(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
ELSE(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
## TODO ... ? or does it work out of the box
|
|
|
|
## TODO ... ? or does it work out of the box
|
|
|
|