7378792b49
Add a RunCMake.if test to cover if() command behavior. Start with a test for IS_DIRECTORY cases with an existing directory and a long path, both with a trailing slash.
6 lines
209 B
CMake
6 lines
209 B
CMake
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/")
|
|
message(STATUS "CMAKE_CURRENT_SOURCE_DIR exists, tested with trailing slash")
|
|
else()
|
|
message(FATAL_ERROR "CMAKE_CURRENT_SOURCE_DIR does not exist!")
|
|
endif()
|