From 6a4ca42f7c053c2c53d901885a50398de04af38f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 8 Sep 2020 18:27:44 +0300 Subject: Cleanup --- CMakeLists.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 99aeeae5..43638dfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,15 +13,15 @@ option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) include (BuildType.cmake) include (Embed.cmake) -if (EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation) - set (TFDN_STATIC_LIBRARY ON CACHE BOOL "Shared library not needed") - set (TFDN_ENABLE_INSTALL OFF CACHE BOOL "Library install not needed") - set (TFDN_ENABLE_TESTS OFF CACHE BOOL "Library tests not needed") - set (TFDN_ENABLE_WEBREQUEST OFF CACHE BOOL "libcurl not needed") +if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation) + find_package (the_Foundation REQUIRED) +else () + set (TFDN_STATIC_LIBRARY ON CACHE BOOL "") + set (TFDN_ENABLE_INSTALL OFF CACHE BOOL "") + set (TFDN_ENABLE_TESTS OFF CACHE BOOL "") + set (TFDN_ENABLE_WEBREQUEST OFF CACHE BOOL "") add_subdirectory (lib/the_Foundation) add_library (the_Foundation::the_Foundation ALIAS the_Foundation) -else () - find_package (the_Foundation REQUIRED) endif () find_package (PkgConfig REQUIRED) pkg_check_modules (SDL2 REQUIRED sdl2) -- cgit v1.2.3