We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 616febb commit ac25cd4Copy full SHA for ac25cd4
python/CMakeLists.txt
@@ -23,7 +23,11 @@ SET(PYWRAP ${PYWRAP} PARENT_SCOPE)
23
24
MAKE_DIRECTORY("${${PROJECT_NAME}_BINARY_DIR}/python/${PROJECT_NAME}")
25
26
+ADD_CUSTOM_TARGET(python)
27
+SET_TARGET_PROPERTIES(python PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD True)
28
+
29
ADD_LIBRARY(${PYWRAP} SHARED main.cpp)
30
+ADD_DEPENDENCIES(python ${PYWRAP})
31
TARGET_LINK_LIBRARIES(${PYWRAP} PUBLIC ${PROJECT_NAME})
32
# BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS spews conversion warnings from int to long unsigned int.
33
# Unfortunately, using literals does not work in a macro. As such, this turns them off for the entire wrapper:
0 commit comments