From: vsr Date: Tue, 19 May 2020 08:25:13 +0000 (+0300) Subject: Clean-up X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvsr%2Fclean_up;p=tools%2Fconfiguration.git Clean-up --- diff --git a/cmake/SalomeSetupPlatform.cmake b/cmake/SalomeSetupPlatform.cmake index c470e35..e051147 100644 --- a/cmake/SalomeSetupPlatform.cmake +++ b/cmake/SalomeSetupPlatform.cmake @@ -19,13 +19,6 @@ 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()