Changeset 19276


Ignore:
Timestamp:
10/22/18 22:05:04 (6 years ago)
Author:
tbretz
Message:
It's actually better to create the library directly in dictionary rather than copying it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19270 r19276  
    5353# ********* Requirements **********
    5454# *********************************
     55
     56# Inlclude the main source AND build dir itself
     57#SET(CMAKE_INCLUDE_CURRENT_DIR ON)
    5558
    5659# =========== help2man ============
     
    242245        OPTIONS -p -D__MARS__ -DHAVE_ZLIB)
    243246
     247SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/dictionary)
    244248ADD_LIBRARY(mars SHARED dictionary/MARS.cxx) # CMAKE_POSITION_INDEPENDENT_CODE
    245249TARGET_LINK_LIBRARIES(mars
     
    263267# rootlogon.C finds the shared object only if the libmars.so is in the same directory than the dictionary files
    264268# there is a way to create a map file with rootcling - but I haven#t yet fugured out how. Note that a link is not enough
    265 ADD_CUSTOM_COMMAND(TARGET mars POST_BUILD
    266         COMMAND cp -f ${PROJECT_BINARY_DIR}/libmars.so ${PROJECT_BINARY_DIR}/dictionary/libmars.so
    267         COMMENT "Copying libmars.so to ${PROJECT_BINARY_DIR}/dictionary")
     269#ADD_CUSTOM_COMMAND(TARGET mars POST_BUILD
     270#       COMMAND cp -f ${PROJECT_BINARY_DIR}/libmars.so ${PROJECT_BINARY_DIR}/dictionary/libmars.so
     271#       COMMENT "Copying libmars.so to ${PROJECT_BINARY_DIR}/dictionary")
    268272
    269273#---Create a shared library with geneated dictionary
Note: See TracChangeset for help on using the changeset viewer.