fix: move toml++ find call
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
62841c5b23
commit
7c6bb80cee
@ -192,6 +192,11 @@ if (Qt5_POSITION_INDEPENDENT_CODE)
|
|||||||
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Find toml++
|
||||||
|
if(NOT Launcher_FORCE_BUNDLED_LIBS)
|
||||||
|
find_package(tomlplusplus 3.2.0 QUIET)
|
||||||
|
endif()
|
||||||
|
|
||||||
####################################### Program Info #######################################
|
####################################### Program Info #######################################
|
||||||
|
|
||||||
set(Launcher_APP_BINARY_NAME "polymc" CACHE STRING "Name of the Launcher binary")
|
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/rainbow) # Qt extension for colors
|
||||||
add_subdirectory(libraries/LocalPeer) # fork of a library from Qt solutions
|
add_subdirectory(libraries/LocalPeer) # fork of a library from Qt solutions
|
||||||
add_subdirectory(libraries/classparser) # class parser library
|
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)
|
if(NOT tomlplusplus_FOUND)
|
||||||
message(STATUS "Using bundled tomlplusplus")
|
message(STATUS "Using bundled tomlplusplus")
|
||||||
add_subdirectory(libraries/tomlplusplus) # toml parser
|
add_subdirectory(libraries/tomlplusplus) # toml parser
|
||||||
|
Loading…
Reference in New Issue
Block a user