From b51e509562e128013c5e7f69c70bd335b0191c75 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sat, 19 Sep 2020 12:07:03 +0300 Subject: [PATCH] Don't add psemek to ALL --- CMakeLists.txt | 2 +- libs/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff1b5340..49238668 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ add_subdirectory(package) add_subdirectory(tools) add_subdirectory(libs) -add_library(psemek todo.md) +add_library(psemek EXCLUDE_FROM_ALL todo.md) target_link_libraries(psemek INTERFACE ${PSEMEK_LIBRARIES}) set_target_properties(psemek PROPERTIES LINKER_LANGUAGE CXX) diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index cfdf65e0..3963cba9 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -5,6 +5,7 @@ foreach(lib ${PSEMEK_LIBRARIES}) add_subdirectory(${lib}) target_compile_definitions(${lib} PUBLIC ${PSEMEK_DEFINITIONS}) target_compile_options(${lib} PUBLIC ${PSEMEK_CXX_FLAGS}) + set_target_properties(${lib} PROPERTIES EXCLUDE_FROM_ALL TRUE) endforeach() set(PSEMEK_LIBRARIES ${PSEMEK_LIBRARIES} PARENT_SCOPE)