Browse Source

cmake: Add check for tgmath.h header.

half-secret
Andrey Akhmichin 5 years ago
parent
commit
11adcd5ac8
  1. 5
      cl_dll/CMakeLists.txt
  2. 6
      dlls/CMakeLists.txt

5
cl_dll/CMakeLists.txt

@ -25,6 +25,11 @@ project (CLDLL)
set (CLDLL_LIBRARY client) set (CLDLL_LIBRARY client)
include(CheckIncludeFile)
check_include_file("tgmath.h" HAVE_TGMATH_H)
if(HAVE_TGMATH_H)
add_definitions(-DHAVE_TGMATH_H)
endif()
add_definitions(-DCLIENT_WEAPONS -DCLIENT_DLL) add_definitions(-DCLIENT_WEAPONS -DCLIENT_DLL)

6
dlls/CMakeLists.txt

@ -25,6 +25,12 @@ project (SVDLL)
set (SVDLL_LIBRARY server) set (SVDLL_LIBRARY server)
include(CheckIncludeFile)
check_include_file("tgmath.h" HAVE_TGMATH_H)
if(HAVE_TGMATH_H)
add_definitions(-DHAVE_TGMATH_H)
endif()
add_definitions(-DCLIENT_WEAPONS) add_definitions(-DCLIENT_WEAPONS)
if(NOT MSVC) if(NOT MSVC)

Loading…
Cancel
Save