CMakeLists.txt: clarify comments

This commit is contained in:
Přemysl Eric Janouch 2017-06-20 06:26:10 +02:00
parent 3067e15929
commit 77968ea165
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 6 additions and 5 deletions

View File

@ -62,12 +62,13 @@ if (USE_SYSTEM_TERMO)
message (FATAL_ERROR "System termo library not found")
endif (NOT Termo_FOUND)
else (USE_SYSTEM_TERMO)
# We don't want the library to install, even though EXCLUDE_FROM_ALL
# sabotages CTest -- those unbuilt tests need to be excluded in CTest runs
add_subdirectory (termo EXCLUDE_FROM_ALL)
# We don't have many good choices when we don't want to install it and want
# to support older versions of CMake; this is a relatively clean approach
# (other possibilities: setting a variable in the parent scope, using a
# cache variable, writing a special config file with build paths in it and
# including it here, or setting a custom property on the targets).
# We don't have many good choices; this is a relatively clean approach
# (other possibilities: setting a variable in the parent scope, using
# a cache variable, writing a special config file with build paths in it
# and including it here, or setting a custom property on the targets)
get_directory_property (Termo_INCLUDE_DIRS
DIRECTORY termo INCLUDE_DIRECTORIES)
set (Termo_LIBRARIES termo-static)