From 7d6ec6f5a6604ce0fdc1869f4d2ff822d02a44dd Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 27 Feb 2020 17:24:46 +0100 Subject: [PATCH] Set Windows flag. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e73079d..beae05e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,10 @@ file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp") add_library(Arbutils SHARED ${SRC_FILES}) set_target_properties(Arbutils PROPERTIES LINKER_LANGUAGE CXX) +if (WINDOWS) + ADD_DEFINITIONS(-D WINDOWS=1) +endif (WINDOWS) + file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp") if (NOT DEFINED CONAN_EXPORTED) add_executable(ArbutilsTests ${TEST_FILES} extern/catch.hpp)