Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
OpenRCT2-mod
Commits
6307d353
Unverified
Commit
6307d353
authored
6 years ago
by
Michał Janiszewski
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Make headers-check an object library
This will skip linking step
parent
32b419c8
develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/openrct2/CMakeLists.txt
+1
-1
src/openrct2/CMakeLists.txt
with
1 addition
and
1 deletion
+1
-1
src/openrct2/CMakeLists.txt
+
1
-
1
View file @
6307d353
...
...
@@ -185,7 +185,7 @@ endif()
# - GCC 8 does not support -Wno-pragma-once-outside-header
# - Other compilers status unknown
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Clang"
)
add_library
(
${
PROJECT
}
-headers-check
${
OPENRCT2_CORE_HEADERS
}
)
add_library
(
${
PROJECT
}
-headers-check
OBJECT
${
OPENRCT2_CORE_HEADERS
}
)
set_target_properties
(
${
PROJECT
}
-headers-check PROPERTIES LINKER_LANGUAGE CXX
)
set_source_files_properties
(
${
OPENRCT2_CORE_HEADERS
}
PROPERTIES LANGUAGE CXX
)
add_definitions
(
"-x c++ -Wno-pragma-once-outside-header -Wno-unused-const-variable"
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help