Commit 307e8ecf authored by Benjamin Heisch's avatar Benjamin Heisch
Browse files

Changed Interface to PUBLIC

parent 4b2302bd
Pipeline #19100 failed with stages
in 3 minutes and 35 seconds
cmake_minimum_required (VERSION 3.1.3)
cmake_minimum_required (VERSION 3.13)
project(XPlug)
##########INCLUDES############
......
......@@ -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}")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment