We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d5b97 commit 732fe87Copy full SHA for 732fe87
CMakeLists.txt
@@ -17,6 +17,7 @@ include(cmake/compiler_warnings.cmake)
17
include(cmake/doxygen.cmake)
18
include(cmake/sanitizers.cmake)
19
include(cmake/macro_prefix.cmake)
20
+include(cmake/always_include.cmake)
21
22
add_subdirectory(src)
23
add_subdirectory(project_config)
cmake/always_include.cmake
@@ -0,0 +1,7 @@
1
+function(target_always_include target access file)
2
+ if (MSVC)
3
+ target_compile_options(${target} ${access} "/FI${file}")
4
+ else()
5
+ target_compile_options(${target} ${access} "-include${file}")
6
+ endif()
7
+endfunction()
0 commit comments