From 9c84638f38d5463a5f33571f4242693bdbe57f03 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Fri, 15 Nov 2019 18:37:04 +0100 Subject: [PATCH] cmake: fix compilation issue on WIN32 --- python/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 84422c3..6ef7424 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -28,7 +28,9 @@ TARGET_LINK_LIBRARIES(${PYWRAP} ${PROJECT_NAME}) TARGET_LINK_BOOST_PYTHON(${PYWRAP}) # BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS spews conversion warnings from int to long unsigned int. # Unfortunately, using literals does not work in a macro. As such, this turns them off for the entire wrapper: -TARGET_COMPILE_OPTIONS(${PYWRAP} PRIVATE "-Wno-conversion") +IF(NOT WIN32) + TARGET_COMPILE_OPTIONS(${PYWRAP} PRIVATE "-Wno-conversion") +ENDIF() #IF(BUILD_WITH_COMMIT_VERSION) # TAG_LIBRARY_VERSION(${PYWRAP}) #ENDIF(BUILD_WITH_COMMIT_VERSION) -- GitLab