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
Heisch, Benjamin
APAL
Commits
307e8ecf
Commit
307e8ecf
authored
Aug 08, 2020
by
Benjamin Heisch
Browse files
Changed Interface to PUBLIC
parent
4b2302bd
Pipeline
#19100
failed with stages
in 3 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
307e8ecf
cmake_minimum_required
(
VERSION 3.1
.
3
)
cmake_minimum_required
(
VERSION 3.13
)
project
(
XPlug
)
##########INCLUDES############
...
...
cmake/symbol_export.cmake
View file @
307e8ecf
...
...
@@ -7,10 +7,10 @@ function(EXPORT_SYMBOLS EXPORT_SYMBOLS_TARGET)
cmake_policy
(
SET CMP0054 NEW
)
foreach
(
loop_var
${
EXPORT_SYMBOLS_FUNCTION_NAMES
}
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang|GNU"
)
target_link_options
(
${
EXPORT_SYMBOLS_TARGET
}
INTERFACE
"LINKER:--undefined=
${
loop_var
}
"
)
target_link_options
(
${
EXPORT_SYMBOLS_TARGET
}
PUBLIC
"LINKER:--undefined=
${
loop_var
}
"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"GNU"
)
#MESSAGE("GNU
")
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Intel"
)
target_link_options
(
${
EXPORT_SYMBOLS_TARGET
}
PUBLIC
"LINKER:--undefined=
${
loop_var
}
"
)
#MESSAGE("GNU")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
MESSAGE
(
"No Symbol export defined. Specify here, how to handle"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MSVC"
)
target_link_options
(
${
EXPORT_SYMBOLS_TARGET
}
INTERFACE
"/EXPORT:
${
loop_var
}
"
)
...
...
Write
Preview
Supports
Markdown
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