link to dl
This commit is contained in:
parent
d738cf21f7
commit
029b052787
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ target_link_options(GearSrc PRIVATE -static-libgcc -static-libstdc++)
|
|||
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
target_link_libraries(GearSrc PRIVATE m)
|
||||
endif()
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
target_link_libraries(GearSrc PRIVATE dl)
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
target_compile_definitions(GearSrc PRIVATE DEBUG)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue