Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Friedrich W. H. Kossebau
kdevelop
Commits
92de7337
Commit
92de7337
authored
Jan 05, 2014
by
Kevin Funk
Browse files
FindClang: Implicitly detect LLVM
parent
ab3bf41b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
92de7337
...
...
@@ -13,8 +13,7 @@ cmake_minimum_required(VERSION 2.8.9)
find_package
(
KDE4 REQUIRED
)
find_package
(
KDevPlatform
${
KDEVPLATFORM_VERSION
}
REQUIRED
)
find_package
(
LLVM 3.3 REQUIRED
)
find_package
(
Clang REQUIRED
)
find_package
(
Clang 3.3 REQUIRED
)
# TODO: Can we make this implicit via set_target_properties magic?
link_directories
(
${
LLVM_LIBRARY_DIRS
}
)
...
...
cmake/FindClang.cmake
View file @
92de7337
...
...
@@ -21,8 +21,10 @@
# See the License for more information.
#=============================================================================
find_package
(
LLVM
${
Clang_FIND_VERSION
}
REQUIRED
)
if
(
NOT LLVM_INCLUDE_DIR OR NOT LLVM_LIBRARY_DIR
)
message
(
FATAL_ERROR
"
No LLVM and Clang support requires
LLVM"
)
message
(
FATAL_ERROR
"
Could not detect
LLVM"
)
else
()
macro
(
FIND_AND_ADD_CLANG_LIB _libname_
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment