1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-07-03 11:53:41 +02:00

CMakeModules/libeoskeygen.cmake: call add_subdirectory() with EXCLUDE_FROM_ALL so we don't run all targets (install, cpack etc).

This commit is contained in:
Henrik Hautakoski 2020-03-28 22:08:47 +01:00
parent 384ad2537b
commit 44a1ea16bd

View file

@ -18,12 +18,16 @@ macro(fromGit tag)
GIT_TAG ${tag} GIT_TAG ${tag}
) )
FetchContent_MakeAvailable(libeoskeygen) FetchContent_GetProperties(libeoskeygen)
if (NOT libeoskeygen_POPULATED)
FetchContent_Populate(libeoskeygen)
add_subdirectory(${libeoskeygen_SOURCE_DIR} ${libeoskeygen_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
endmacro() endmacro()
macro(buildLocal src) macro(buildLocal src)
message ("Using local libeoskeygen at: ${src}") message ("Using local libeoskeygen at: ${src}")
add_subdirectory(${src} ${src}/build) add_subdirectory(${src} ${src}/build EXCLUDE_FROM_ALL)
endmacro() endmacro()
# If we have a local libeoskeygen # If we have a local libeoskeygen