diff --git a/CMakeLists.txt b/CMakeLists.txt index 4320b42..d957df0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,8 @@ set_target_properties(optframe_lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/optframe LIBRARY_OUTPUT_NAME optframe_lib WINDOWS_EXPORT_ALL_SYMBOLS ON + POSITION_INDEPENDENT_CODE ON ) -set_target_properties(optframe_lib PROPERTIES POSITION_INDEPENDENT_CODE ON) # https://stackoverflow.com/questions/58059048/ambiguous-byte-definition-in-rpcndr-and-cstddef#58060367 target_compile_definitions(optframe_lib PRIVATE _HAS_STD_BYTE=0)