Changeset 20074


Ignore:
Timestamp:
04/12/21 19:33:17 (2 months ago)
Author:
tbretz
Message:
fact++.rc must be in the bin directory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/CMakeLists.txt

    r20072 r20074  
    13991399    SET(INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
    14001400    CONFIGURE_FILE(fact++.rc.in fact++rc.install @ONLY)
    1401     INSTALL(FILES ${CMAKE_BINARY_DIR}/fact++rc.install DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME fact++.rc)
     1401    INSTALL(FILES ${CMAKE_BINARY_DIR}/fact++rc.install DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME fact++.rc)
    14021402
    14031403    # Create empty directories during installation
     
    14061406
    14071407    INSTALL(CODE "MESSAGE(STATUS \"Preparing environment.\")")
     1408    # This is just for convenience as the fact++.rc is read from the directory of the binary itself
     1409    INSTALL(CODE "EXECUTE_PROCESS(COMMAND ln -sf ${CMAKE_INSTALL_BINDIR}/fact++.rc WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})")
    14081410ENDIF()
    14091411
Note: See TracChangeset for help on using the changeset viewer.