Skip to content

Commit

Permalink
Fix compile when extra-cmake-modules aren't available
Browse files Browse the repository at this point in the history
BUG: 392320
  • Loading branch information
milianw committed Mar 26, 2018
1 parent 60257e3 commit 79cd7c8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include(ECMEnableSanitizers)
if (ECM_FOUND)
include(ECMEnableSanitizers)
endif()

add_subdirectory(libbacktrace)

Expand Down
4 changes: 3 additions & 1 deletion src/analyze/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include(ECMEnableSanitizers)
if (ECM_FOUND)
include(ECMEnableSanitizers)
endif()

configure_file(analyze_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/analyze_config.h)

Expand Down
4 changes: 3 additions & 1 deletion src/interpret/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include(ECMEnableSanitizers)
if (ECM_FOUND)
include(ECMEnableSanitizers)
endif()

include_directories(
${Boost_INCLUDE_DIRS}
Expand Down
5 changes: 4 additions & 1 deletion tests/auto/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
include(ECMEnableSanitizers)
if (ECM_FOUND)
include(ECMEnableSanitizers)
endif()

set(CMAKE_BUILD_TYPE Debug)

include_directories(
Expand Down

0 comments on commit 79cd7c8

Please sign in to comment.