Skip to content
Snippets Groups Projects
Commit 3516c432 authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Added warning (ROOT-8546)

parent c355561c
No related branches found
No related tags found
No related merge requests found
...@@ -728,7 +728,6 @@ function(ROOT_INSTALL_HEADERS) ...@@ -728,7 +728,6 @@ function(ROOT_INSTALL_HEADERS)
set (filter "(${filter})") set (filter "(${filter})")
string(REPLACE ${CMAKE_SOURCE_DIR} "" tgt ${CMAKE_CURRENT_SOURCE_DIR}) string(REPLACE ${CMAKE_SOURCE_DIR} "" tgt ${CMAKE_CURRENT_SOURCE_DIR})
string(MAKE_C_IDENTIFIER move_header${tgt} tgt) string(MAKE_C_IDENTIFIER move_header${tgt} tgt)
#add_custom_target(${tgt})
set_property(GLOBAL APPEND PROPERTY ROOT_HEADER_TARGETS ${tgt}) set_property(GLOBAL APPEND PROPERTY ROOT_HEADER_TARGETS ${tgt})
foreach(d ${dirs}) foreach(d ${dirs})
install(DIRECTORY ${d} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} install(DIRECTORY ${d} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
......
...@@ -84,6 +84,10 @@ endif(cxxmodules) ...@@ -84,6 +84,10 @@ endif(cxxmodules)
if(NOT DEFINED LLVM_BUILD_TYPE) if(NOT DEFINED LLVM_BUILD_TYPE)
set(LLVM_BUILD_TYPE Release CACHE STRING "Build type for LLVM (used to set CMAKE_BUILD_TYPE)") set(LLVM_BUILD_TYPE Release CACHE STRING "Build type for LLVM (used to set CMAKE_BUILD_TYPE)")
endif() endif()
if( CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT LLVM_BUILD_TYPE STREQUAL "Debug")
message(WARNING "Selected a 'Debug' build (CMAKE_BUILD_TYPE), be aware that the embedded LLVM will still be built as 'Release'."
" Use the variable LLVM_BUILD_TYPE to control it.")
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug") if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(LLVM_ENABLE_ASSERTIONS "YES") set(LLVM_ENABLE_ASSERTIONS "YES")
else() else()
......
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