From 75d33878ab75618f169939f9b6941a5c4794336f Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Thu, 23 Jun 2011 17:52:36 +0000 Subject: cmake+lit: handle ENABLE_ASSERTIONS feature properly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133725 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2db58b9..2634f79 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -79,6 +79,12 @@ if(PYTHONINTERP_FOUND) set(ENABLE_SHARED ${LLVM_SHARED_LIBS_ENABLED}) set(SHLIBPATH_VAR ${SHLIBPATH_VAR}) + if(LLVM_ENABLE_ASSERTIONS) + set(ENABLE_ASSERTIONS "1") + else() + set(ENABLE_ASSERTIONS "0") + endif(LLVM_ENABLE_ASSERTIONS) + # lit.site.cfg uses the config-time build mode set(LLVM_BUILD_MODE "${LLVM_BUILD_MODE}") -- cgit v1.1