From b27a509aa973ebe51adce2a84997c11b18755bba Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Fri, 9 Oct 2020 14:00:13 +0200 Subject: [PATCH] Define the build options before including SfizzConfig --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0158e93a..19aa16d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)