aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2024-07-25 12:27:34 +0200
committerGitHub <noreply@github.com>2024-07-25 12:27:34 +0200
commit539a04e06578ce9b0cf005446eff66e18753076d (patch)
tree56748dfb95033713038daf4992440eb154659515
parent37000d13927f52c96d7ead3f9bca4fe421894fcf (diff)
parentd65f31f21a3b5b4e2e3b5c17a68253126fdcaeee (diff)
Merge pull request #354 from TheNitesWhoSay/master
Add STORM_UNICODE option for windows cmake builds
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6546b69..5bf15df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,17 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(CMakeDependentOption)
include(GNUInstallDirs)
+option(STORM_UNICODE "Compile UNICODE version instead of ANSI one (Visual Studio only)" OFF)
+
+if(WIN32)
+ if(STORM_UNICODE)
+ message(STATUS "Build UNICODE version")
+ add_definitions(-DUNICODE -D_UNICODE)
+ else()
+ message(STATUS "Build ANSI version")
+ endif()
+endif()
+
option(BUILD_SHARED_LIBS "Compile shared libraries" OFF)
option(STORM_SKIP_INSTALL "Skip installing files" OFF)
option(STORM_USE_BUNDLED_LIBRARIES