diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-09-26 13:43:26 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-09-26 13:46:01 +0200 |
commit | 7c6bb80cee123d7bdd140d2892a3f473f972ebc8 (patch) | |
tree | 5bfab5b5df1355b159be4c695a329664e981b4e8 | |
parent | 62841c5b238b86f5a01eac5c156f15d51e886597 (diff) | |
download | PrismLauncher-7c6bb80cee123d7bdd140d2892a3f473f972ebc8.tar.gz PrismLauncher-7c6bb80cee123d7bdd140d2892a3f473f972ebc8.tar.bz2 PrismLauncher-7c6bb80cee123d7bdd140d2892a3f473f972ebc8.zip |
fix: move toml++ find call
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 109db157..46192414 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,6 +192,11 @@ if (Qt5_POSITION_INDEPENDENT_CODE) SET(CMAKE_POSITION_INDEPENDENT_CODE ON) endif() +# Find toml++ +if(NOT Launcher_FORCE_BUNDLED_LIBS) + find_package(tomlplusplus 3.2.0 QUIET) +endif() + ####################################### Program Info ####################################### set(Launcher_APP_BINARY_NAME "polymc" CACHE STRING "Name of the Launcher binary") @@ -312,9 +317,6 @@ endif() add_subdirectory(libraries/rainbow) # Qt extension for colors add_subdirectory(libraries/LocalPeer) # fork of a library from Qt solutions add_subdirectory(libraries/classparser) # class parser library -if(NOT Launcher_FORCE_BUNDLED_LIBS) - find_package(tomlplusplus 3.2.0 QUIET) -endif() if(NOT tomlplusplus_FOUND) message(STATUS "Using bundled tomlplusplus") add_subdirectory(libraries/tomlplusplus) # toml parser |