Salome HOME
Run SALOME with UNICODE path
[tools/configuration.git] / cmake / SalomeSetupPlatform.cmake
index 3d7ef60cdaa37b79cd2f46857be973fee61344ff..96ca250faeb72450d9bb4db8a448f8834adbfac6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -74,6 +74,8 @@ IF(WIN32)
   ELSE()
     SET(SIZE_OF_LONG ${CMAKE_SIZEOF_VOID_P})  # Set sizeof(long) the same as size of pointers
   ENDIF()
+  ADD_DEFINITIONS(-DUNICODE)                  # Unicode 
+  ADD_DEFINITIONS(-D_UNICODE)
 ELSE()
   ## Linux specific:
   SET(PLATFORM_LIBS dl)                       # Dynamic loading (dlopen, dlsym)