cling/lib/Utils/CMakeLists.txt
2016-11-08 08:44:16 +01:00

43 lines
903 B
CMake

#------------------------------------------------------------------------------
# CLING - the C++ LLVM-based InterpreterG :)
#
# This file is dual-licensed: you can choose to license it under the University
# of Illinois Open Source License or the GNU Lesser General Public License. See
# LICENSE.TXT for details.
#------------------------------------------------------------------------------
set( LLVM_LINK_COMPONENTS
support
)
set( LIBS
clangSema
clangAST
clangLex
clangBasic
clangParse
)
find_library(DL_LIBRARY_PATH dl)
if (DL_LIBRARY_PATH)
list(APPEND LIBS dl)
endif()
add_cling_library(clingUtils OBJECT
AST.cpp
ParserStateRAII.cpp
Paths.cpp
PlatformMac.cpp
PlatformPosix.cpp
PlatformWin.cpp
SourceNormalization.cpp
Validation.cpp
LINK_LIBS
${LIBS}
)
if ( MSVC )
set_target_properties(clingUtils PROPERTIES
COMPILE_FLAGS "/D_HAS_EXCEPTIONS=0")
endif ()