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 03b835b commit 1b19aaaCopy full SHA for 1b19aaa
cmake/macro_prefix.cmake
@@ -1,6 +1,9 @@
1
include(${CMAKE_SOURCE_DIR}/cmake/misc.cmake)
2
3
function (set_macro_prefix project_name acc)
4
+ if (NOT ENABLE_MACRO_PREFIX)
5
+ return()
6
+ endif ()
7
if (ENABLE_COVERAGE)
8
return()
9
endif ()
cmake/options.cmake
@@ -52,7 +52,8 @@ set(CACHE_PROGRAM "ccache" CACHE STRING "Compiler cache to be used")
52
53
# Macro prefix
54
55
-set(MACRO_PREFIX "" CACHE STRING "Make __FILE__ macro relative to particular directory")
+option(ENABLE_MACRO_PREFIX "Enable __FILE__ macro replacement" ${IS_NOT_DEBUG})
56
+set(MACRO_PREFIX "./" CACHE STRING "Make __FILE__ macro relative to particular directory")
57
58
# Language standard and extensions
59
set(CMAKE_CXX_STANDARD 20)
0 commit comments