Merge topic 'check_cxx_compiler_flag_cmakeonly'
8de3b3d
CheckCXXCompilerFlag test: make it a CMakeOnly test
This commit is contained in:
commit
a4e0257840
|
@ -241,8 +241,6 @@ IF(BUILD_TESTING)
|
||||||
|
|
||||||
ADD_TEST_MACRO(Module.GenerateExportHeader GenerateExportHeader)
|
ADD_TEST_MACRO(Module.GenerateExportHeader GenerateExportHeader)
|
||||||
|
|
||||||
ADD_TEST_MACRO(Module.CheckCXXCompilerFlag CheckCXXCompilerFlag)
|
|
||||||
|
|
||||||
ADD_TEST(LinkFlags-prepare
|
ADD_TEST(LinkFlags-prepare
|
||||||
${CMAKE_CTEST_COMMAND} -C \${CTEST_CONFIGURATION_TYPE}
|
${CMAKE_CTEST_COMMAND} -C \${CTEST_CONFIGURATION_TYPE}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
|
|
|
@ -15,6 +15,8 @@ add_CMakeOnly_test(CheckSymbolExists)
|
||||||
|
|
||||||
add_CMakeOnly_test(CheckCXXSymbolExists)
|
add_CMakeOnly_test(CheckCXXSymbolExists)
|
||||||
|
|
||||||
|
add_CMakeOnly_test(CheckCXXCompilerFlag)
|
||||||
|
|
||||||
add_CMakeOnly_test(AllFindModules)
|
add_CMakeOnly_test(AllFindModules)
|
||||||
|
|
||||||
add_CMakeOnly_test(TargetScope)
|
add_CMakeOnly_test(TargetScope)
|
||||||
|
|
|
@ -56,19 +56,3 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
else()
|
else()
|
||||||
message("Unhandled Platform")
|
message("Unhandled Platform")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#
|
|
||||||
# This is a no-op executable... If this test is going to fail, it fails during
|
|
||||||
# the configure step while cmake is configuring this CMakeLists.txt file...
|
|
||||||
#
|
|
||||||
|
|
||||||
file(WRITE
|
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/main.cxx"
|
|
||||||
"int main() { return 0; }
|
|
||||||
"
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(
|
|
||||||
CheckCXXCompilerFlag
|
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/main.cxx"
|
|
||||||
)
|
|
Loading…
Reference in New Issue