From 358a7205845eb34ed699497e51b16662236e6cdd Mon Sep 17 00:00:00 2001 From: Patrick Kappl Date: Thu, 11 Jan 2024 15:32:22 +0100 Subject: [PATCH] Add WIN32 to all compile definitions if on Windows --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f31e6b2..4b15a0e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,10 @@ if (UNIX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") endif(UNIX) +if(WIN32) + add_compile_definitions("WIN32") +endif(WIN32) + # Always build the core SDK library add_subdirectory(sdk_core sdk_core) # Only build the samples if this is the top-level project