Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
cppit
libclangmm
Commits
bbdaf9ef
Commit
bbdaf9ef
authored
Jun 26, 2020
by
Ole Christian Eidheim
Browse files
Do not run add_compile_options when libclangmm is a sub-project
parent
0e017948
Pipeline
#160567935
passed with stage
in 2 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
CMakeLists.txt
CMakeLists.txt
+3
-4
src/CMakeLists.txt
src/CMakeLists.txt
+0
-1
No files found.
CMakeLists.txt
View file @
bbdaf9ef
...
...
@@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 2.8)
project
(
clangmm
)
add_compile_options
(
-std=c++11 -Wall -Wextra
)
if
(
APPLE
)
set
(
CMAKE_MACOSX_RPATH 1
)
endif
()
...
...
@@ -15,14 +13,15 @@ endif()
list
(
APPEND CMAKE_MODULE_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake_modules"
)
find_package
(
LibClang REQUIRED
)
add_subdirectory
(
src
)
option
(
BUILD_TESTING OFF
)
if
(
${
NOT_SUB_PROJECT
}
)
add_compile_options
(
-std=c++11 -Wall -Wextra
)
set
(
BUILD_TESTING ON
)
endif
()
add_subdirectory
(
src
)
if
(
BUILD_TESTING
)
enable_testing
()
add_subdirectory
(
tests
)
...
...
src/CMakeLists.txt
View file @
bbdaf9ef
...
...
@@ -15,7 +15,6 @@ add_library(clangmm
utility.cpp
)
include_directories
(
${
LIBCLANG_INCLUDE_DIRS
}
)
target_link_libraries
(
clangmm
${
LIBCLANG_LIBRARIES
}
)
target_include_directories
(
clangmm PUBLIC
${
LIBCLANG_INCLUDE_DIRS
}
.
)
...
...
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