From 8c4c06a5b9a5c7473a32d41ccce67e7fabad6ac3 Mon Sep 17 00:00:00 2001 From: Joris Gillis Date: Fri, 17 Mar 2023 14:31:15 +0100 Subject: [PATCH] Worhp no lib prefix on windows --- worhp/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worhp/CMakeLists.txt b/worhp/CMakeLists.txt index 92679b6..5bd1fdf 100644 --- a/worhp/CMakeLists.txt +++ b/worhp/CMakeLists.txt @@ -14,6 +14,10 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) add_library(worhp SHARED src/worhp.cpp include/worhp.h) +if(WIN32) + set_target_properties(${LIBRARY_NAME} PROPERTIES PREFIX "" IMPORT_PREFIX "") +endif() + if(CMAKE_SIZEOF_VOID_P EQUAL 4) set(NBITS_TWO "32") elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)