Changeset 19775 for trunk/Mars


Ignore:
Timestamp:
10/15/19 10:53:53 (5 years ago)
Author:
tbretz
Message:
root 5 doesn't know that target and the links are not required either.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19774 r19775  
    270270        # install directory. In this case, the pcm files
    271271        # are not where the library is where they should be
    272         ADD_CUSTOM_COMMAND(TARGET ${_CINT} POST_BUILD
    273             COMMAND test -f ../dictionary/${CINT}_rdict.pcm && ln -s ../dictionary/${_CINT}_rdict.pcm ${_CINT}_rdict.pcm || true
    274             WORKING_DIRECTORY lib
    275             VERBATIM)
     272        IF(TARGET ${_CINT})
     273            ADD_CUSTOM_COMMAND(TARGET ${_CINT} POST_BUILD
     274                COMMAND test -f ../dictionary/${CINT}_rdict.pcm && ln -s ../dictionary/${_CINT}_rdict.pcm ${_CINT}_rdict.pcm || true
     275                WORKING_DIRECTORY lib
     276                VERBATIM)
     277        ENDIF()
    276278
    277279ENDMACRO()
     
    347349# install directory. In this case, the pcm files
    348350# are not where the library is where they should be
    349 ADD_CUSTOM_COMMAND(TARGET Core POST_BUILD
    350     COMMAND test -f ../dictionary/Core_rdict.pcm && ln -s ../dictionary/Core_rdict.pcm Core_rdict.pcm || true
    351     WORKING_DIRECTORY lib
    352     VERBATIM)
     351IF(TARGET Core)
     352    ADD_CUSTOM_COMMAND(TARGET Core POST_BUILD
     353        COMMAND test -f ../dictionary/Core_rdict.pcm && ln -s ../dictionary/Core_rdict.pcm Core_rdict.pcm || true
     354        WORKING_DIRECTORY lib
     355        VERBATIM)
     356ENDIF()
    353357
    354358
Note: See TracChangeset for help on using the changeset viewer.