diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-24 09:01:13 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-24 09:01:13 +0000 |
commit | ee6944f4ab4258e6b7b9c91c0c18444193d6f55a (patch) | |
tree | f2ae8d853d901e248eeee9abc7dcf66b7bd5c02b /test | |
parent | c8417d7165e156739cd768713db0113383ede07e (diff) | |
download | external_llvm-ee6944f4ab4258e6b7b9c91c0c18444193d6f55a.zip external_llvm-ee6944f4ab4258e6b7b9c91c0c18444193d6f55a.tar.gz external_llvm-ee6944f4ab4258e6b7b9c91c0c18444193d6f55a.tar.bz2 |
CMake: Build unittests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index eab2992..3828057 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -52,7 +52,15 @@ if(PYTHONINTERP_FOUND) set(LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR}/${CMAKE_CFG_INTDIR}") set(LLVMGCCDIR "") set(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE}) - set(LLVM_BUILD_MODE ${CMAKE_CFG_INTDIR}) + if (CMAKE_CONFIGURATION_TYPES) + # FIXME: We have no idea. It could be any of them... So just output all of + # them. + set(LLVM_BUILD_MODE "${CMAKE_CONFIGURATION_TYPES}") + elseif (CMAKE_BUILD_TYPE) + set(LLVM_BUILD_MODE "${CMAKE_BUILD_TYPE}") + else() + set(LLVM_BUILD_MODE "None") + endif() set(ENABLE_SHARED ${LLVM_SHARED_LIBS_ENABLED}) set(SHLIBPATH_VAR ${SHLIBPATH_VAR}) |