]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
CMake: Win32 compatibility
authorana <ana@opencascade.com>
Thu, 4 Oct 2012 06:25:39 +0000 (06:25 +0000)
committerana <ana@opencascade.com>
Thu, 4 Oct 2012 06:25:39 +0000 (06:25 +0000)
src/SALOME_SWIG/CMakeLists.txt

index f0fbad1516c224166d8cf9ab0c6d4cd7d241cbc0..08943c2094a384f59fd2043d349f408694a0f042 100755 (executable)
@@ -32,6 +32,7 @@ INCLUDE_DIRECTORIES(
   ${QWT_INCLUDE_DIRS}
   ${VTK_INCLUDE_DIRS}
   ${BOOST_INCLUDE_DIRS}
+  ${PTHREAD_INCLUDE_DIRS}
   ${CMAKE_CURRENT_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}/salome_adm
   ${CMAKE_BINARY_DIR}/idl
@@ -60,9 +61,9 @@ SWIG_ADD_MODULE(libSALOME_Swig python libSALOME_Swig.i SALOMEGUI_Swig.cxx)
 SWIG_LINK_LIBRARIES(libSALOME_Swig LightApp ${PYTHON_LIBS})
 SET_TARGET_PROPERTIES(_libSALOME_Swig PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
 
-IF(${MACHINE} STREQUAL WINDOWS)
+IF(WINDOWS)
   SET_TARGET_PROPERTIES(_libSALOME_Swig PROPERTIES DEBUG_OUTPUT_NAME _libSALOME_Swig_d)
-ENDIF(${MACHINE} STREQUAL WINDOWS)
+ENDIF(WINDOWS)
 
 INSTALL(TARGETS _libSALOME_Swig DESTINATION ${GUI_salomepythondir})