Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 13, 2010, 3:14:25 PM (14 years ago)
Author:
rgrieder
Message:

DEFINE_SYMBOL property is only added to compile flags for an executable.

Location:
sandbox_qt/cmake/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox_qt/cmake/tools/GetGCCCompilerFlags.cmake

    r7163 r7447  
    5858  GET_TARGET_PROPERTY(_target_defs            ${_target} COMPILE_DEFINITIONS)
    5959  GET_TARGET_PROPERTY(_target_defs_build_type ${_target} COMPILE_DEFINITIONS_${_build_type_upper})
    60   GET_TARGET_PROPERTY(_target_def_symbol      ${_target} DEFINE_SYMBOL)
     60  IF(${_target_type} STREQUAL SHARED_LIBRARY)
     61    GET_TARGET_PROPERTY(_target_def_symbol    ${_target} DEFINE_SYMBOL)
     62  ENDIF()
     63
    6164  # Prefix them all with a "-D" if the property was found
    6265  FOREACH(_def ${_directory_defs} ${_directory_defs_build_type} ${_target_defs}
  • sandbox_qt/cmake/tools/PrecompiledHeaderFiles.cmake

    r7289 r7447  
    7070    LIST(APPEND ${_sourcefile_var} ${_pch_header_file})
    7171  ENDIF()
    72   SOURCE_GROUP("PCH" FILES ${_pch_header_file})
    7372
    7473  IF(MSVC)
     
    8180    SET_SOURCE_FILES_PROPERTIES(_pch_source_file PROPERTIES GENERATED TRUE)
    8281    LIST(APPEND ${_sourcefile_var} ${_pch_source_file})
    83     SOURCE_GROUP("PCH" FILES ${_pch_source_file})
    8482
    8583    SET(_pch_file "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${_pch_header_filename}.pch")
Note: See TracChangeset for help on using the changeset viewer.