Skip to content
Snippets Groups Projects
Verified Commit 4d228e9f authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#85] Adding definitions before compiling modules

parent 7d5b1784
No related branches found
No related tags found
1 merge request!73Resolve "MinGW - the messy compiler support"
Pipeline #26054 passed
...@@ -44,6 +44,9 @@ endif() ...@@ -44,6 +44,9 @@ endif()
# configure everything to use the required dependencies # configure everything to use the required dependencies
include(${vkcv_config}/Libraries.cmake) include(${vkcv_config}/Libraries.cmake)
# set the compile definitions aka preprocessor variables
add_compile_definitions(${vkcv_definitions})
# add modules as targets # add modules as targets
add_subdirectory(modules) add_subdirectory(modules)
...@@ -56,9 +59,6 @@ message("-- Flags: [ ${vkcv_flags} ]") ...@@ -56,9 +59,6 @@ message("-- Flags: [ ${vkcv_flags} ]")
# set the compiler flags for the framework # set the compiler flags for the framework
set(CMAKE_CXX_FLAGS ${vkcv_flags}) 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 # create VkCV framework as static library using all source files
add_library(vkcv STATIC ${vkcv_sources}) add_library(vkcv STATIC ${vkcv_sources})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment