]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Clean-up vsr/clean_up
authorvsr <vsr@opencascade.com>
Tue, 19 May 2020 08:25:13 +0000 (11:25 +0300)
committervsr <vsr@opencascade.com>
Tue, 19 May 2020 08:25:13 +0000 (11:25 +0300)
cmake/SalomeSetupPlatform.cmake

index c470e35a1e778d7351b8a91687590af52add8b97..e0511476137ef9686d154566da317987c9a99545 100644 (file)
 
 INCLUDE(CheckCXXCompilerFlag)
 
-## Detect architecture
-IF(WIN32)
-  SET(MACHINE WINDOWS)
-ELSE()
-  SET(MACHINE PCLINUX)
-ENDIF()
-
 ## Test for 64 bits
 IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
   SET(MACHINE_IS_64 TRUE)
@@ -64,13 +57,19 @@ IF(WIN32)
   ELSE()
     SET(SIZE_OF_LONG ${CMAKE_SIZEOF_VOID_P})  # Set sizeof(long) the same as size of pointers
   ENDIF()
+  SET(MACHINE WINDOWS)
+  ADD_DEFINITIONS(-DWINDOWS)
   ADD_DEFINITIONS(-DUNICODE)                  # Unicode 
   ADD_DEFINITIONS(-D_UNICODE)
 ELSE()
   ## Linux specific:
   SET(PLATFORM_LIBS dl)                       # Dynamic loading (dlopen, dlsym)
   IF(MACHINE_IS_64) 
+    SET(MACHINE PCLINUX64)
     ADD_DEFINITIONS(-DPCLINUX64)
+  ELSE(MACHINE_IS_64) 
+    SET(MACHINE PCLINUX)
+    ADD_DEFINITIONS(-DPCLINUX)
   ENDIF(MACHINE_IS_64)
 ENDIF()