diff options
| author | Jürgen Hötzel <juergen@hoetzel.info> | 2020-04-09 02:08:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-08 17:08:57 -0700 |
| commit | 5fcedeb506b7d47dd7bab35797f2c3f23db6fe10 (patch) | |
| tree | c2e0070973bc45e594ea7369e180cf20f34896ec | |
| parent | fc14dc3832741285f0431ae43fca6265b7041e3c (diff) | |
Handle unset environment in CMake condition gracefully (#19)
This fixes a CMake Error when if the environment variable is not set.
| -rw-r--r-- | prom/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prom/CMakeLists.txt b/prom/CMakeLists.txt index aaa8877..3e610d4 100644 --- a/prom/CMakeLists.txt +++ b/prom/CMakeLists.txt @@ -121,7 +121,7 @@ target_sources( target_link_libraries(prom PUBLIC Threads::Threads) -if ($ENV{TEST} EQUAL "1") +if ($ENV{TEST}) include(test/CMakeLists.txt) endif() @@ -137,4 +137,4 @@ set(CPACK_PACKAGE_HOMEPAGE_URL https://github.internal.digitalocean.com/timeseri include(CPack) install(TARGETS prom ARCHIVE) -install(DIRECTORY include/ DESTINATION /usr/include/)
\ No newline at end of file +install(DIRECTORY include/ DESTINATION /usr/include/) |
