Merge pull request #1844 from Tridacnid/develop
Update tests that generate CMake projects to use main project's C++ compiler
This commit is contained in:
commit
7439cfe5c8
3 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
add_test(NAME cmake_add_subdirectory_configure
|
add_test(NAME cmake_add_subdirectory_configure
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-G "${CMAKE_GENERATOR}"
|
-G "${CMAKE_GENERATOR}"
|
||||||
|
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
||||||
-Dnlohmann_json_source=${PROJECT_SOURCE_DIR}
|
-Dnlohmann_json_source=${PROJECT_SOURCE_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/project
|
${CMAKE_CURRENT_SOURCE_DIR}/project
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,6 +2,7 @@ add_test(NAME cmake_import_configure
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-G "${CMAKE_GENERATOR}"
|
-G "${CMAKE_GENERATOR}"
|
||||||
-A "${CMAKE_GENERATOR_PLATFORM}"
|
-A "${CMAKE_GENERATOR_PLATFORM}"
|
||||||
|
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
||||||
-Dnlohmann_json_DIR=${PROJECT_BINARY_DIR}
|
-Dnlohmann_json_DIR=${PROJECT_BINARY_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/project
|
${CMAKE_CURRENT_SOURCE_DIR}/project
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,6 +2,7 @@ add_test(NAME cmake_import_minver_configure
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-G "${CMAKE_GENERATOR}"
|
-G "${CMAKE_GENERATOR}"
|
||||||
-A "${CMAKE_GENERATOR_PLATFORM}"
|
-A "${CMAKE_GENERATOR_PLATFORM}"
|
||||||
|
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
||||||
-Dnlohmann_json_DIR=${PROJECT_BINARY_DIR}
|
-Dnlohmann_json_DIR=${PROJECT_BINARY_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/project
|
${CMAKE_CURRENT_SOURCE_DIR}/project
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue