summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeRoleGlobalProperty/Project.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMakeRoleGlobalProperty/Project.cmake')
-rw-r--r--Tests/RunCMake/CMakeRoleGlobalProperty/Project.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeRoleGlobalProperty/Project.cmake b/Tests/RunCMake/CMakeRoleGlobalProperty/Project.cmake
index c0b6a48..22cad2b 100644
--- a/Tests/RunCMake/CMakeRoleGlobalProperty/Project.cmake
+++ b/Tests/RunCMake/CMakeRoleGlobalProperty/Project.cmake
@@ -1,4 +1,8 @@
get_property(role GLOBAL PROPERTY CMAKE_ROLE)
+
+file(WRITE "${CMAKE_BINARY_DIR}/test.cmake" "# a")
+include("${CMAKE_BINARY_DIR}/test.cmake")
+
if(NOT role STREQUAL "PROJECT")
message(SEND_ERROR "CMAKE_ROLE property is \"${role}\", should be \"PROJECT\"")
endif()