mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
cmake: Check for TPARM_VARARGS
This commit is contained in:
parent
3e03625113
commit
a608e5d581
1 changed files with 16 additions and 2 deletions
|
@ -115,10 +115,24 @@ int main () {
|
||||||
"
|
"
|
||||||
TPARM_TAKES_VARARGS
|
TPARM_TAKES_VARARGS
|
||||||
)
|
)
|
||||||
SET(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
IF(NOT TPARM_TAKES_VARARGS)
|
IF(NOT TPARM_TAKES_VARARGS)
|
||||||
SET(TPARM_SOLARIS_KLUDGE 1)
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
|
${TPARM_INCLUDES}
|
||||||
|
#define TPARM_VARARGS
|
||||||
|
|
||||||
|
int main () {
|
||||||
|
tparm( \"\" );
|
||||||
|
}
|
||||||
|
"
|
||||||
|
TPARM_TAKES_VARARGS_WITH_VARARGS
|
||||||
|
)
|
||||||
|
IF(NOT TPARM_TAKES_VARARGS)
|
||||||
|
SET(TPARM_SOLARIS_KLUDGE 1)
|
||||||
|
ELSE()
|
||||||
|
SET(TPARM_VARARGS 1)
|
||||||
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
SET(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
|
||||||
CHECK_CXX_SOURCE_COMPILES("
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
Loading…
Reference in a new issue