Changeset 19774 for trunk


Ignore:
Timestamp:
10/15/19 10:47:52 (5 years ago)
Author:
tbretz
Message:
looks like a better handling of the dictionary pcm files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19773 r19774  
    270270        # install directory. In this case, the pcm files
    271271        # are not where the library is where they should be
    272         ADD_CUSTOM_COMMAND(
    273             OUTPUT  lib/${_CINT}_rdict.pcm
    274             COMMAND ln -s ../dictionary/${_CINT}_rdict.pcm ${_CINT}_rdict.pcm || true
     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
    275274            WORKING_DIRECTORY lib
    276         VERBATIM)
    277         ADD_CUSTOM_TARGET(${_CINT}.p ALL DEPENDS lib/${_CINT}_rdict.pcm)
     275            VERBATIM)
    278276
    279277ENDMACRO()
     
    349347# install directory. In this case, the pcm files
    350348# are not where the library is where they should be
    351 ADD_CUSTOM_COMMAND(
    352     OUTPUT  lib/Core_rdict.pcm
    353     COMMAND ln -s ../dictionary/Core_rdict.pcm Core_rdict.pcm || true
     349ADD_CUSTOM_COMMAND(TARGET Core POST_BUILD
     350    COMMAND test -f ../dictionary/Core_rdict.pcm && ln -s ../dictionary/Core_rdict.pcm Core_rdict.pcm || true
    354351    WORKING_DIRECTORY lib
    355 VERBATIM)
    356 ADD_CUSTOM_TARGET(Core.p ALL DEPENDS lib/Core_rdict.pcm)
     352    VERBATIM)
    357353
    358354
Note: See TracChangeset for help on using the changeset viewer.