Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5901 for code/trunk


Ignore:
Timestamp:
Oct 7, 2009, 1:11:01 PM (15 years ago)
Author:
rgrieder
Message:

Fix did not entirely work before.
Visual Studio should now work again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/TargetUtilities.cmake

    r5900 r5901  
    108108      # Add the config files in a special source group
    109109      LIST(APPEND _${_target_name}_files ${ORXONOX_CONFIG_FILES})
    110       FOREACH(_file ${ORXONOX_CONFIG_FILES})
    111         SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES HEADER_FILE_ONLY TRUE)
    112       ENDFOREACH(_file)
    113110      SOURCE_GROUP("Config" FILES ${ORXONOX_CONFIG_FILES})
    114111    ENDIF()
     
    159156    SET(_arg_STATIC)
    160157  ENDIF()
     158
     159  # Don't compile header files
     160  FOREACH(_file ${_${_target_name}_files})
     161    IF(NOT _file MATCHES "\\.(c|cc|cpp)")
     162      SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES HEADER_FILE_ONLY TRUE)
     163    ENDIF()
     164  ENDFOREACH(_file)
    161165
    162166  # Add the library/executable
Note: See TracChangeset for help on using the changeset viewer.