File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.14)
22project (mylib-add LANGUAGES CXX)
3- include ("../../cmake/utils.cmake" )
43
4+ include ("../../cmake/utils.cmake" )
55string (COMPARE EQUAL "${CMAKE_SOURCE_DIR} " "${CMAKE_CURRENT_SOURCE_DIR} " is_top_level)
66
77if (is_top_level)
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.14)
22project (mylib-tests)
3- include ("../cmake/utils.cmake" )
4-
5- string (COMPARE EQUAL "${CMAKE_SOURCE_DIR} " "${CMAKE_CURRENT_SOURCE_DIR} " is_top_level)
63
74#----------------------------------------------------------------------------------------------------------------------
85# general settings and options
96#----------------------------------------------------------------------------------------------------------------------
107
8+ include ("../cmake/utils.cmake" )
9+ string (COMPARE EQUAL "${CMAKE_SOURCE_DIR} " "${CMAKE_CURRENT_SOURCE_DIR} " is_top_level)
10+
1111if (is_top_level)
1212 enable_testing ()
1313endif ()
You can’t perform that action at this time.
0 commit comments