Skip to content

Commit 77b2063

Browse files
authored
Merge pull request #123 from jcarpent/devel
Fix another compilation issue on WIN32
2 parents e51ea73 + 9c84638 commit 77b2063

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ TARGET_LINK_LIBRARIES(${PYWRAP} ${PROJECT_NAME})
2828
TARGET_LINK_BOOST_PYTHON(${PYWRAP})
2929
# BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS spews conversion warnings from int to long unsigned int.
3030
# Unfortunately, using literals does not work in a macro. As such, this turns them off for the entire wrapper:
31-
TARGET_COMPILE_OPTIONS(${PYWRAP} PRIVATE "-Wno-conversion")
31+
IF(NOT WIN32)
32+
TARGET_COMPILE_OPTIONS(${PYWRAP} PRIVATE "-Wno-conversion")
33+
ENDIF()
3234
#IF(BUILD_WITH_COMMIT_VERSION)
3335
# TAG_LIBRARY_VERSION(${PYWRAP})
3436
#ENDIF(BUILD_WITH_COMMIT_VERSION)

0 commit comments

Comments
 (0)