Skip to content

Commit eed745a

Browse files
authored
Update CMakeLists.txt
1 parent edc2ec3 commit eed745a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM
6767
include(CPack)
6868

6969
# Tasks
70-
if(BUILD_TESTING)
70+
if(BUILD_TESTING AND CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
7171
file(
7272
GLOB_RECURSE
7373
c_cxx_files

0 commit comments

Comments
 (0)