Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11693 for code


Ignore:
Timestamp:
Jan 3, 2018, 2:31:43 AM (7 years ago)
Author:
landauf
Message:

apparently we must create the directory for module/plugin-files manually to make it work with some (older?) versions of CMake

File:
1 edited

Legend:

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

    r11692 r11693  
    476476  IF(CMAKE_CONFIGURATION_TYPES)
    477477    FOREACH(_config ${CMAKE_CONFIGURATION_TYPES})
    478       SET(_helper_filename ${_output_dir}/${_config}/${_target_name}${_extension})
     478      SET(_helper_directory ${_output_dir}/${_config})
     479      FILE(MAKE_DIRECTORY ${_helper_directory})
     480      SET(_helper_filename ${_helper_directory}/${_target_name}${_extension})
    479481
    480482      FILE(GENERATE OUTPUT ${_helper_filename} CONTENT $<TARGET_FILE_NAME:${_target_name}>)
     
    487489    ENDFOREACH()
    488490  ELSE()
    489     SET(_helper_filename ${_output_dir}/${_target_name}${_extension})
     491    SET(_helper_directory ${_output_dir})
     492    FILE(MAKE_DIRECTORY ${_helper_directory})
     493    SET(_helper_filename ${_helper_directory}/${_target_name}${_extension})
    490494
    491495    FILE(GENERATE OUTPUT ${_helper_filename} CONTENT $<TARGET_FILE_NAME:${_target_name}>)
Note: See TracChangeset for help on using the changeset viewer.