PushCheckStateTest: Update test to check CMAKE_EXTRA_INCLUDE_FILES
This commit is contained in:
parent
72a862a55b
commit
fad5d59cf4
|
@ -1,5 +1,6 @@
|
|||
include(CMakePushCheckState)
|
||||
|
||||
set(CMAKE_EXTRA_INCLUDE_FILES file1)
|
||||
set(CMAKE_REQUIRED_INCLUDES dir1)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS defs1 )
|
||||
set(CMAKE_REQUIRED_LIBRARIES lib1)
|
||||
|
@ -8,6 +9,7 @@ set(CMAKE_REQUIRED_QUIET 1)
|
|||
|
||||
cmake_push_check_state()
|
||||
|
||||
set(CMAKE_EXTRA_INCLUDE_FILES file2)
|
||||
set(CMAKE_REQUIRED_INCLUDES dir2)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS defs2)
|
||||
set(CMAKE_REQUIRED_LIBRARIES lib2)
|
||||
|
@ -16,6 +18,7 @@ set(CMAKE_REQUIRED_QUIET 2)
|
|||
|
||||
cmake_push_check_state()
|
||||
|
||||
set(CMAKE_EXTRA_INCLUDE_FILES file3)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS defs3)
|
||||
set(CMAKE_REQUIRED_INCLUDES dir3)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS defs3)
|
||||
|
@ -26,6 +29,7 @@ set(CMAKE_REQUIRED_QUIET 3)
|
|||
cmake_pop_check_state()
|
||||
|
||||
foreach(pair IN ITEMS
|
||||
EXTRA_INCLUDE_FILES|file2
|
||||
REQUIRED_INCLUDES|dir2
|
||||
REQUIRED_DEFINITIONS|defs2
|
||||
REQUIRED_LIBRARIES|lib2
|
||||
|
@ -44,6 +48,7 @@ endforeach()
|
|||
cmake_pop_check_state()
|
||||
|
||||
foreach(pair IN ITEMS
|
||||
EXTRA_INCLUDE_FILES|file1
|
||||
REQUIRED_INCLUDES|dir1
|
||||
REQUIRED_DEFINITIONS|defs1
|
||||
REQUIRED_LIBRARIES|lib1
|
||||
|
|
Loading…
Reference in New Issue