Define the build options before including SfizzConfig

This commit is contained in:
Jean Pierre Cimalando 2020-10-09 14:00:13 +02:00
parent 7e0d964606
commit b27a509aa9

View file

@ -14,7 +14,6 @@ set (PROJECT_DESCRIPTION "A library to load SFZ description files and use them t
# External configuration CMake scripts
set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include (BuildType)
include (SfizzConfig)
# Build Options
set (BUILD_TESTING OFF CACHE BOOL "Disable Abseil's tests [default: OFF]")
@ -34,6 +33,8 @@ option (SFIZZ_USE_VCPKG "Assume that sfizz is build using vcpkg [default
option (SFIZZ_STATIC_DEPENDENCIES "Link dependencies statically [default: OFF]" OFF)
option (SFIZZ_RELEASE_ASSERTS "Forced assertions in release builds [default: OFF]" OFF)
include (SfizzConfig)
# Don't use IPO in non Release builds
include (CheckIPO)