]> SALOME platform Git repositories - tools/py2cpp.git/commitdiff
Salome HOME
CEA issue 30278 - patch from Nabil GHODBANE for WINDOWS. V9_10_0 V9_10_0a1 V9_10_0a2 V9_10_0b1 V9_10_0rc1 V9_11_0a1 V9_11_0a2 V9_11_0b1
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 25 Aug 2022 10:54:50 +0000 (12:54 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 25 Aug 2022 10:54:50 +0000 (12:54 +0200)
src/CMakeLists.txt

index 38854a1fcd5cb3444bf72ae61b2a6e37bcef4d47..d3fda0a29029f1b2bca20c4c0dbb4a8251f433ac 100644 (file)
@@ -51,7 +51,11 @@ TARGET_INCLUDE_DIRECTORIES(py2cpp PUBLIC
                           $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
                           $<INSTALL_INTERFACE:include>)
 
-INSTALL(TARGETS py2cpp EXPORT Py2cppCfg LIBRARY DESTINATION lib)
+IF(WIN32)
+  INSTALL(TARGETS py2cpp EXPORT Py2cppCfg LIBRARY DESTINATION lib ${CMAKE_INSTALL_LIBDIR}  RUNTIME DESTINATION bin ${CMAKE_INSTALL_BINDIR})
+ELSE(WIN32)
+  INSTALL(TARGETS py2cpp EXPORT Py2cppCfg LIBRARY DESTINATION lib)
+ENDIF(WIN32)
 INSTALL(FILES ${_py2cpp_headers} DESTINATION include/py2cpp)
 INSTALL(EXPORT Py2cppCfg DESTINATION lib/cmake/py2cpp FILE Py2cppConfig.cmake)