CMakeLists cleaning : -D__PYTHON_MODULE__=1 is absolutely not needed when using boost::python (it is specific to isobar)

This commit is contained in:
Damien Dupuis 2010-07-15 11:15:47 +00:00
parent b2e2eafadb
commit a5d98eca47
5 changed files with 8 additions and 13 deletions

View File

@ -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)

View File

@ -20,7 +20,6 @@ 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 ""
)

View File

@ -17,7 +17,6 @@ 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 ""
)

View File

@ -20,7 +20,6 @@ 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 ""
)

View File

@ -35,7 +35,6 @@ 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 ""
)