From eb662cb2e472b458697125e1bea0d1d868f460c5 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 30 Apr 2021 14:36:31 +0200 Subject: [PATCH] If Windows and shared, force .dll extension. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c4e9a8..8f3083f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,9 @@ if (WINDOWS) ADD_DEFINITIONS(-D WINDOWS=1) # -m64: Build a 64 bit library add_compile_options(-m64) + if (SHARED) + set_target_properties(Arbutils PROPERTIES SUFFIX ".dll") + endif() endif (WINDOWS) if (CMAKE_BUILD_TYPE MATCHES "Debug")