- fix used C++ standard (closer to full C++ 20)

This commit is contained in:
2024-11-05 11:44:53 +03:00
parent f3ebe11a42
commit 5bf8d665e2
12 changed files with 22 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ project (helper_lib)
set (CMAKE_CXX_STANDARD 20)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_POSITION_INDEPENDENT_CODE OFF)
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
file (GLOB HELPER_LIB_SOURCES "*.cpp" "*.h")
@@ -15,4 +15,6 @@ set_property(TARGET helper_lib PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<C
# Private include directories
target_include_directories(helper_lib PUBLIC ../../libs/ ../../engine ../ .)
target_compile_definitions(helper_lib PRIVATE -D_CRT_SECURE_NO_WARNINGS -D_UNICODE)
target_link_libraries(helper_lib PUBLIC uuid)
if (TARGET_LINUX)
target_link_libraries (helper_lib PUBLIC uuid)
endif()