diff options
| author | Yaroslav | 2023-05-09 21:23:03 +0300 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-05-12 13:52:45 +0200 |
| commit | 5a40b2275caa05cf809bf04df848764a9d7df2e2 (patch) | |
| tree | 8719c1f4f8f537bb39f754ce3ac011adfd16610e | |
| parent | 598895d04866c6e85f1d703a8c3d89e8d38a2311 (diff) | |
| download | catch3-5a40b2275caa05cf809bf04df848764a9d7df2e2.tar.gz | |
Update CatchConfigOptions.cmake
Fix CMake warning
CMake Warning (dev) at catch2-src/CMake/CatchConfigOptions.cmake:71 (set):
uninitialized variable 'BUILD_SHARED_LIBS'
| -rw-r--r-- | CMake/CatchConfigOptions.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMake/CatchConfigOptions.cmake b/CMake/CatchConfigOptions.cmake index 733ec65e..e59f3a1e 100644 --- a/CMake/CatchConfigOptions.cmake +++ b/CMake/CatchConfigOptions.cmake @@ -68,7 +68,11 @@ set(_OtherConfigOptions foreach(OptionName ${_OtherConfigOptions}) AddConfigOption(${OptionName}) endforeach() -set(CATCH_CONFIG_SHARED_LIBRARY ${BUILD_SHARED_LIBS}) +if(DEFINED BUILD_SHARED_LIBS) + set(CATCH_CONFIG_SHARED_LIBRARY ${BUILD_SHARED_LIBS}) +else() + set(CATCH_CONFIG_SHARED_LIBRARY "") +endif() set(CATCH_CONFIG_DEFAULT_REPORTER "console" CACHE STRING "Read docs/configuration.md for details. The name of the reporter should be without quotes.") set(CATCH_CONFIG_CONSOLE_WIDTH "80" CACHE STRING "Read docs/configuration.md for details. Must form a valid integer literal.") |