CMakeLists cleaning : -D__PYTHON_MODULE__=1 is absolutely not needed when using boost::python (it is specific to isobar)
This commit is contained in:
parent
b2e2eafadb
commit
a5d98eca47
|
@ -26,7 +26,6 @@ find_package(Bootstrap REQUIRED)
|
|||
setup_boost(program_options filesystem python)
|
||||
|
||||
FIND_PACKAGE(LibXml2 REQUIRED)
|
||||
FIND_PACKAGE(PythonLibs REQUIRED)
|
||||
FIND_PACKAGE(PythonSitePackages REQUIRED)
|
||||
FIND_PACKAGE(PythonLibs REQUIRED)
|
||||
|
||||
|
|
|
@ -20,9 +20,8 @@ INSTALL(FILES ${hpps} DESTINATION include/vlsisapd/agds)
|
|||
IF(Boost_FOUND)
|
||||
ADD_LIBRARY(pyAGDS MODULE ${pycpps})
|
||||
SET_TARGET_PROPERTIES(pyAGDS PROPERTIES
|
||||
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
||||
OUTPUT_NAME "AGDS"
|
||||
PREFIX ""
|
||||
OUTPUT_NAME "AGDS"
|
||||
PREFIX ""
|
||||
)
|
||||
TARGET_LINK_LIBRARIES(pyAGDS agds ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
|
||||
INSTALL(TARGETS pyAGDS DESTINATION ${PYTHON_SITE_PACKAGES})
|
||||
|
|
|
@ -17,9 +17,8 @@ INSTALL(FILES ${hpps} DESTINATION include/vlsisapd/cif)
|
|||
IF(Boost_FOUND)
|
||||
ADD_LIBRARY(pyCIF MODULE ${pycpps})
|
||||
SET_TARGET_PROPERTIES(pyCIF PROPERTIES
|
||||
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
||||
OUTPUT_NAME "CIF"
|
||||
PREFIX ""
|
||||
OUTPUT_NAME "CIF"
|
||||
PREFIX ""
|
||||
)
|
||||
TARGET_LINK_LIBRARIES(pyCIF cif ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
|
||||
INSTALL(TARGETS pyCIF DESTINATION ${PYTHON_SITE_PACKAGES})
|
||||
|
|
|
@ -20,9 +20,8 @@ INSTALL(TARGETS dtr DESTINATION lib${LIB_SUFFIX})
|
|||
IF (Boost_FOUND)
|
||||
ADD_LIBRARY(pyDTR MODULE ${pycpps})
|
||||
SET_TARGET_PROPERTIES(pyDTR PROPERTIES
|
||||
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
||||
OUTPUT_NAME "DTR"
|
||||
PREFIX ""
|
||||
OUTPUT_NAME "DTR"
|
||||
PREFIX ""
|
||||
)
|
||||
TARGET_LINK_LIBRARIES(pyDTR dtr ${LIBXML2_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
|
||||
INSTALL(TARGETS pyDTR DESTINATION ${PYTHON_SITE_PACKAGES})
|
||||
|
|
|
@ -35,9 +35,8 @@ INSTALL(TARGETS openChams DESTINATION lib${LIB_SUFFIX} )
|
|||
IF(Boost_FOUND)
|
||||
ADD_LIBRARY(pyOPENCHAMS MODULE ${pycpps})
|
||||
SET_TARGET_PROPERTIES(pyOPENCHAMS PROPERTIES
|
||||
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
||||
OUTPUT_NAME "OPENCHAMS"
|
||||
PREFIX ""
|
||||
OUTPUT_NAME "OPENCHAMS"
|
||||
PREFIX ""
|
||||
)
|
||||
TARGET_LINK_LIBRARIES(pyOPENCHAMS openChams ${LIBXML2_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
|
||||
INSTALL(TARGETS pyOPENCHAMS DESTINATION ${PYTHON_SITE_PACKAGES})
|
||||
|
|
Loading…
Reference in New Issue