Skip to content

Commit

Permalink
updates for sdktool and test
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed Nov 12, 2024
1 parent db28e33 commit eaf46ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ function(set_default_compile_options target)
set(MAIN_CFLAGS "")
endif()
set(MAIN_CFLAGS "${MAIN_CFLAGS} -D__64BIT__")
set_property(TARGET ${target} PROPERTY CXX_STANDARD 17)
set_property(TARGET ${target} PROPERTY CXX_STANDARD_REQUIRED ON)
if(MSVC)
set(MAIN_CFLAGS "${MAIN_CFLAGS} /bigobj /MP")
set(MAIN_CFLAGS "${MAIN_CFLAGS} /D__WINDOWS__ /D_WINDOWS /D_CRT_SECURE_NO_WARNINGS /DLPWINAPP")
Expand Down
8 changes: 6 additions & 2 deletions sdktool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,15 @@ endif()
target_link_libraries(SDKtool ${wxWidgets_LIBRARIES})

if (UNIX AND NOT APPLE)
target_link_libraries(SDKtool -ldl -lfontconfig)
target_link_libraries(SDKtool ${CMAKE_DL_LIBS} -lfontconfig)
endif()

if (UNIX)
target_link_libraries(SDKtool -lm -lcurl)
find_library(MATH_LIBRARY m)
if(MATH_LIBRARY)
target_link_libraries(SDKtool ${MATH_LIBRARY})
endif()
target_link_libraries(SDKtool -lcurl)
elseif (MSVC)
find_library( CURL_LIB
NAMES libcurl.lib
Expand Down
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ endif()
target_link_libraries(Test ssc splinter)

if (UNIX)
target_link_libraries(Test -ldl -lpthread)
find_package(Threads REQUIRED)
target_link_libraries(Test Threads::Threads ${CMAKE_DL_LIBS})
endif()


Expand Down

0 comments on commit eaf46ae

Please sign in to comment.