mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
cmake: Add check for tgmath.h header.
This commit is contained in:
parent
a9f37f6d74
commit
11adcd5ac8
@ -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)
|
||||||
|
|
||||||
|
@ -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…
Reference in New Issue
Block a user