CMake/Tests/RunCMake/if/IsDirectory.cmake
Brad King 7378792b49 if: Add test for IS_DIRECTORY
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.
2013-05-28 11:35:32 -04:00

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()