From 218fc7e7c3c07ae11dd47ddc998f37773ad2be39 Mon Sep 17 00:00:00 2001 From: Igor Machado Date: Thu, 7 Dec 2023 20:02:45 +0000 Subject: [PATCH] set_target_properties(optframe_lib PROPERTIES POSITION_INDEPENDENT_CODE ON) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b46cdda..4320b42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ target_link_libraries(optframe_lib PRIVATE OptFrameAll) set_target_properties(optframe_lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/optframe LIBRARY_OUTPUT_NAME optframe_lib + WINDOWS_EXPORT_ALL_SYMBOLS ON ) set_target_properties(optframe_lib PROPERTIES POSITION_INDEPENDENT_CODE ON) # https://stackoverflow.com/questions/58059048/ambiguous-byte-definition-in-rpcndr-and-cstddef#58060367