mirror of
https://github.com/monero-project/kovri
synced 2025-10-06 00:32:51 +02:00
CMake: side-step Clang (CMake?) bug for Release build
This is a very strange bug. See the diff and #993 for details. The only difference between our Release flags and Debug flags are the defining of NDEBUG. As we are in Alpha, this is not a conern but this patch must be removed no later than a Beta (preferably Alpha) release.
This commit is contained in:
@@ -127,6 +127,14 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
||||
set(CLANG TRUE)
|
||||
endif()
|
||||
|
||||
# TODO(unassigned): an absolute hack to work around a clang (CMake?) bug that does not like our Release build type.
|
||||
# Strangely, we don't do anything out of the ordinary with our Release build type, nor do our deps.
|
||||
# The issue is not reproducible with Debug build type. See #993.
|
||||
# Absolutely resolve this hack when are out of out Alpha, or no later than Beta.
|
||||
if (CLANG)
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
endif()
|
||||
|
||||
# Require C++14 support (minimum version compilers guarantee this)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
Reference in New Issue
Block a user