mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-14 15:48:04 +03:00
CMakeLists.txt missing libm.so linking
This commit is contained in:
parent
c893651bf0
commit
e9a39d73f2
@ -22,7 +22,7 @@ if ($ENV{CXX} MATCHES "icpc")
|
||||
|
||||
if (NOT DEBUG)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ipo")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_FLAGS} -ipo")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -ipo")
|
||||
endif()
|
||||
else()
|
||||
# Produce code optimized for the most common IA32/AMD64/EM64T processors.
|
||||
@ -121,7 +121,7 @@ if (NOT TARGET bzip2)
|
||||
endif()
|
||||
|
||||
add_library(core SHARED ${CORE_SRCS} ${COMMON_SRCS})
|
||||
target_link_libraries(core dl bzip2)
|
||||
target_link_libraries(core dl m bzip2)
|
||||
set_target_properties(core PROPERTIES
|
||||
LIBRARY_OUTPUT_NAME core
|
||||
PREFIX ""
|
||||
|
@ -22,7 +22,7 @@ if ($ENV{CXX} MATCHES "icpc")
|
||||
|
||||
if (NOT DEBUG)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ipo")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_FLAGS} -ipo")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -ipo")
|
||||
endif()
|
||||
else()
|
||||
# Produce code optimized for the most common IA32/AMD64/EM64T processors.
|
||||
@ -91,7 +91,7 @@ add_definitions(
|
||||
)
|
||||
|
||||
add_library(demoplayer SHARED ${DEMOPLAYER_SRCS} ${COMMON_SRCS})
|
||||
target_link_libraries(demoplayer dl)
|
||||
target_link_libraries(demoplayer dl m)
|
||||
set_target_properties(demoplayer PROPERTIES
|
||||
LIBRARY_OUTPUT_NAME demoplayer
|
||||
PREFIX ""
|
||||
|
@ -22,7 +22,7 @@ if ($ENV{CXX} MATCHES "icpc")
|
||||
|
||||
if (NOT DEBUG)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ipo")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_FLAGS} -ipo")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -ipo")
|
||||
endif()
|
||||
else()
|
||||
# Produce code optimized for the most common IA32/AMD64/EM64T processors.
|
||||
|
@ -133,6 +133,7 @@ endif()
|
||||
add_library(proxy SHARED ${PROXY_SRCS} ${COMMON_SRCS})
|
||||
target_link_libraries(proxy dl m bzip2 steam_api)
|
||||
set_target_properties(proxy PROPERTIES
|
||||
LIBRARY_OUTPUT_NAME proxy
|
||||
PREFIX ""
|
||||
COMPILE_FLAGS "-m32"
|
||||
LINK_FLAGS "-m32"
|
||||
|
Loading…
x
Reference in New Issue
Block a user