File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,15 @@ cmake_minimum_required(VERSION 3.29)
22include (FindGit)
33include (CMakeParseArguments)
44
5+ if (PROJECT_IS_TOP_LEVEL)
6+ include (CTest)
7+ endif ()
8+
59if (WIN32 )
610 set (CMAKE_OBJECT_PATH_MAX 500)
711endif ()
812
913project (adobe_source_libraries CXX)
10- include (CTest)
1114
1215# download CPM.cmake
1316file (
@@ -36,7 +39,7 @@ endif(NOT DEFINED CMAKE_CXX_STANDARD)
3639set (CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++" )
3740
3841# Create symlink to compile_commands.json for clangd
39- if (CMAKE_EXPORT_COMPILE_COMMANDS AND TOP_LEVEL_PROJECT )
42+ if (CMAKE_EXPORT_COMPILE_COMMANDS AND PROJECT_IS_TOP_LEVEL )
4043 add_custom_target (clangd_compile_commands ALL
4144 COMMAND ${CMAKE_COMMAND} -E create_symlink
4245 ${CMAKE_BINARY_DIR} /compile_commands.json
@@ -75,7 +78,7 @@ endfunction(target_link_boost_test)
7578
7679add_subdirectory (source )
7780
78- if (BUILD_TESTING)
81+ if (PROJECT_IS_TOP_LEVEL AND BUILD_TESTING)
7982 add_subdirectory (test )
8083endif ()
8184
You can’t perform that action at this time.
0 commit comments