mirror of
https://github.com/reactos/CMake.git
synced 2024-12-21 03:00:59 +00:00
4fd5342956
Reject the option by default. It will be implemented on a per-generator basis. Pass the setting into try_compile project generation. Add cache entry CMAKE_GENERATOR_TOOLSET and associated variable documentation to hold the value persistently. Add a RunCMake.GeneratorToolset test to cover basic "-T" option cases. Verify that CMAKE_GENERATOR_TOOLSET is empty without -T, that -T is rejected when the generator doesn't support it, and that two -T options are always rejected.
8 lines
248 B
CMake
8 lines
248 B
CMake
if("x${CMAKE_GENERATOR_TOOLSET}" STREQUAL "x")
|
|
message(FATAL_ERROR "CMAKE_GENERATOR_TOOLSET is empty as expected.")
|
|
else()
|
|
message(FATAL_ERROR
|
|
"CMAKE_GENERATOR_TOOLSET is \"${CMAKE_GENERATOR_TOOLSET}\" "
|
|
"but should be empty!")
|
|
endif()
|