diff --git a/CMakeLists.txt b/CMakeLists.txt index bff486150f082c2e96e543436d977cf3112403ba..2ae078a428a8e5e640ed8dc7bcc2f4e58e159c6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,9 @@ endif() # configure everything to use the required dependencies include(${vkcv_config}/Libraries.cmake) +# set the compile definitions aka preprocessor variables +add_compile_definitions(${vkcv_definitions}) + # add modules as targets add_subdirectory(modules) @@ -56,9 +59,6 @@ message("-- Flags: [ ${vkcv_flags} ]") # set the compiler flags for the framework set(CMAKE_CXX_FLAGS ${vkcv_flags}) -# set the compile definitions aka preprocessor variables -add_compile_definitions(${vkcv_definitions}) - # create VkCV framework as static library using all source files add_library(vkcv STATIC ${vkcv_sources})