fix: move toml++ find call

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-09-26 13:43:26 +02:00
parent 62841c5b23
commit 7c6bb80cee
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -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