[cfe-dev] [PATCH] Fix CMake build on Solaris
Art Haas
ahaas at impactweather.com
Sun Jul 17 06:10:56 PDT 2011
Hi.
The patch below fixes a problem when buildin LLVM/Clang on Solaris. The
generated makefiles would have an extraneous semi-colon character in
them prior to this change due to the way the 'CMAKE_CXX_FLAGS' variable
was defined. Simply adjusting the definition by moving the current
CMAKE_CXX_FLAGS value within the quotes solves the problem.
Art Haas
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 135345)
+++ CMakeLists.txt (working copy)
@@ -181,7 +181,7 @@
include_directories( ${LLVM_BINARY_DIR}/include ${LLVM_MAIN_INCLUDE_DIR})
if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
- SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include llvm/Support/Solaris.h")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include llvm/Support/Solaris.h")
endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
include(AddLLVM)
More information about the cfe-dev
mailing list