Only depend on protolib when it is not build with norm
parent
6a47beee63
commit
30e5dfab53
|
|
@ -45,6 +45,7 @@ if(NOT protokit_FOUND)
|
|||
GIT_TAG ${NORM_PROTOKIT_GIT_TAG}
|
||||
)
|
||||
FetchContent_MakeAvailable(protokit)
|
||||
set(NORM_PROTOKIT_INCLUDED 1)
|
||||
endif()
|
||||
|
||||
# List header files
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@ include(GNUInstallDirs)
|
|||
include(CMakeFindDependencyMacro)
|
||||
|
||||
# Same syntax as find_package
|
||||
find_dependency(protokit REQUIRED)
|
||||
if(NOT @NORM_PROTOKIT_INCLUDED@)
|
||||
find_dependency(protokit REQUIRED)
|
||||
endif()
|
||||
|
||||
# Add the targets file
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/normTargets.cmake")
|
||||
Loading…
Reference in New Issue