2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-28 14:38:11 +03:00

CMakeLists.txt missing libm.so linking

This commit is contained in:
s1lentq 2021-04-08 17:49:58 +07:00
parent c893651bf0
commit e9a39d73f2
4 changed files with 6 additions and 5 deletions

View File

@ -22,7 +22,7 @@ if ($ENV{CXX} MATCHES "icpc")
if (NOT DEBUG) if (NOT DEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ipo") 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() endif()
else() else()
# Produce code optimized for the most common IA32/AMD64/EM64T processors. # Produce code optimized for the most common IA32/AMD64/EM64T processors.
@ -121,7 +121,7 @@ if (NOT TARGET bzip2)
endif() endif()
add_library(core SHARED ${CORE_SRCS} ${COMMON_SRCS}) 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 set_target_properties(core PROPERTIES
LIBRARY_OUTPUT_NAME core LIBRARY_OUTPUT_NAME core
PREFIX "" PREFIX ""

View File

@ -22,7 +22,7 @@ if ($ENV{CXX} MATCHES "icpc")
if (NOT DEBUG) if (NOT DEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ipo") 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() endif()
else() else()
# Produce code optimized for the most common IA32/AMD64/EM64T processors. # 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}) add_library(demoplayer SHARED ${DEMOPLAYER_SRCS} ${COMMON_SRCS})
target_link_libraries(demoplayer dl) target_link_libraries(demoplayer dl m)
set_target_properties(demoplayer PROPERTIES set_target_properties(demoplayer PROPERTIES
LIBRARY_OUTPUT_NAME demoplayer LIBRARY_OUTPUT_NAME demoplayer
PREFIX "" PREFIX ""

View File

@ -22,7 +22,7 @@ if ($ENV{CXX} MATCHES "icpc")
if (NOT DEBUG) if (NOT DEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ipo") 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() endif()
else() else()
# Produce code optimized for the most common IA32/AMD64/EM64T processors. # Produce code optimized for the most common IA32/AMD64/EM64T processors.

View File

@ -133,6 +133,7 @@ endif()
add_library(proxy SHARED ${PROXY_SRCS} ${COMMON_SRCS}) add_library(proxy SHARED ${PROXY_SRCS} ${COMMON_SRCS})
target_link_libraries(proxy dl m bzip2 steam_api) target_link_libraries(proxy dl m bzip2 steam_api)
set_target_properties(proxy PROPERTIES set_target_properties(proxy PROPERTIES
LIBRARY_OUTPUT_NAME proxy
PREFIX "" PREFIX ""
COMPILE_FLAGS "-m32" COMPILE_FLAGS "-m32"
LINK_FLAGS "-m32" LINK_FLAGS "-m32"