diff --git a/rehlds/HLTV/Core/CMakeLists.txt b/rehlds/HLTV/Core/CMakeLists.txt index e1b3be4..e6a002a 100644 --- a/rehlds/HLTV/Core/CMakeLists.txt +++ b/rehlds/HLTV/Core/CMakeLists.txt @@ -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 "" diff --git a/rehlds/HLTV/DemoPlayer/CMakeLists.txt b/rehlds/HLTV/DemoPlayer/CMakeLists.txt index 85dccd2..5b45b97 100644 --- a/rehlds/HLTV/DemoPlayer/CMakeLists.txt +++ b/rehlds/HLTV/DemoPlayer/CMakeLists.txt @@ -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 "" diff --git a/rehlds/HLTV/Director/CMakeLists.txt b/rehlds/HLTV/Director/CMakeLists.txt index 6bd896c..2946fe0 100644 --- a/rehlds/HLTV/Director/CMakeLists.txt +++ b/rehlds/HLTV/Director/CMakeLists.txt @@ -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. diff --git a/rehlds/HLTV/Proxy/CMakeLists.txt b/rehlds/HLTV/Proxy/CMakeLists.txt index 63f6126..fe62aed 100644 --- a/rehlds/HLTV/Proxy/CMakeLists.txt +++ b/rehlds/HLTV/Proxy/CMakeLists.txt @@ -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"