mirror of
https://github.com/reactos/CMake.git
synced 2025-03-03 17:39:10 +00:00

Do not use PROJECT_BINARY_DIR before it is defined. If it is not defined when needed, fail with an error message suggesting that the project() command be invoked first.
6 lines
114 B
CMake
6 lines
114 B
CMake
include(RunCMake)
|
|
|
|
set(RunCMake_TEST_OPTIONS -DNoProject=1)
|
|
run_cmake(BeforeProject)
|
|
unset(RunCMake_TEST_OPTIONS)
|