2
0
mirror of https://github.com/boostorg/locale.git synced 2026-01-19 04:22:08 +00:00

Exclude examples from ALL target

Only build with the `tests` target
This commit is contained in:
Alexander Grund
2024-05-15 12:03:03 +02:00
committed by Alexander Grund
parent f7b1de5403
commit 93d36817fc

View File

@@ -10,7 +10,7 @@ function(boost_locale_add_example name)
endif()
set(name ${PROJECT_NAME}-expl_${name})
add_executable(${name} ${ARG_SRC})
add_executable(${name} EXCLUDE_FROM_ALL ${ARG_SRC})
add_dependencies(tests ${name})
target_link_libraries(${name} PRIVATE
Boost::locale