Skip to content

Commit

Permalink
Fix compiling S-Function with Matlab R2018b
Browse files Browse the repository at this point in the history
This is a temporary fix of robotology#4. A more stable fix should be found.
  • Loading branch information
diegoferigo committed Jan 29, 2019
1 parent 899ec2d commit edb81b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/Simulink/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(Simulink PRIVATE -Wno-format-overflow)
endif()

# Fix https://github.com/robotology/blockfactory/issues/4
target_compile_options(Simulink PRIVATE "-fvisibility=default")

target_include_directories(Simulink PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
${Matlab_ROOT_DIR}/simulink/include)
Expand Down

0 comments on commit edb81b0

Please sign in to comment.