From d68ed15732a9103eed2ffef4a8f90c9cafc23b07 Mon Sep 17 00:00:00 2001 From: Redacted Date: Sun, 30 Jun 2024 20:07:57 -0400 Subject: [PATCH] Update CMakeLists.txt Windows --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5fedc8..8a7380c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,14 @@ file(GLOB_RECURSE SOURCES "src/*.cpp") include_directories("include") -add_library(uuid SHARED ${SOURCES} ${HEADERS}) +if (UNIX AND NOT APPLE) + add_library(uuid SHARED ${SOURCES} ${HEADERS}) +endif() + +if (WIN32) + add_library(uuid STATIC ${SOURCES} ${HEADERS}) +endif() + add_executable(uuidtest main.cpp) set_target_properties(uuid PROPERTIES LINKER_LANGUAGE CXX) target_link_libraries(uuidtest PUBLIC uuid) \ No newline at end of file