mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
remove now unused multi-header support of katie_check_defined()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1df09fb868
commit
d36f69642c
1 changed files with 2 additions and 6 deletions
|
@ -18,14 +18,10 @@ function(KATIE_CHECK_DEFINED FORDEFINITION FROMHEADER)
|
|||
# see comment in top-level CMake file
|
||||
set(CMAKE_REQUIRED_INCLUDES /usr/X11R7/include /usr/pkg/include /usr/local/include /usr/include)
|
||||
set(CMAKE_REQUIRED_LINK_OPTIONS -L/usr/X11R7/lib -L/usr/pkg/lib -L/usr/local/lib -L/usr/lib -L/lib)
|
||||
set(includedata)
|
||||
foreach(inc ${FROMHEADER})
|
||||
set(includedata "${includedata}#include <${inc}>\n")
|
||||
endforeach()
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
#include <stdio.h>
|
||||
${includedata}
|
||||
#include <${FROMHEADER}>
|
||||
|
||||
int main() {
|
||||
printf(\"%p\", &${FORDEFINITION});
|
||||
|
@ -75,7 +71,7 @@ function(KATIE_CHECK_STRUCT FORSTRUCT FORMEMBER FROMHEADER)
|
|||
endfunction()
|
||||
|
||||
# a function to check for file existence in /proc, if file exists a definition
|
||||
# is added, this macro is over-engineered for two reasons - to be able to
|
||||
# is added, this function is over-engineered for two reasons - to be able to
|
||||
# override the test on the command-line and to show test status messages
|
||||
# similar to other tests
|
||||
function(KATIE_CHECK_PROC FORFILE)
|
||||
|
|
Loading…
Add table
Reference in a new issue