Skip to content

Commit

Permalink
- fix Cpp tests (use -fPIC for libOMCppMath on Linux)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17390 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Sep 26, 2013
1 parent 2aabb85 commit b11f542
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SimulationRuntime/cpp/Core/Math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ cmake_minimum_required (VERSION 2.6)
project(${MathName})
# add the solver default implementation library
add_library(${MathName} STATIC ArrayOperations.cpp Functions.cpp )

if (UNIX)
set_target_properties(${MathName} PROPERTIES COMPILE_FLAGS -fPIC)
endif(UNIX)

install (TARGETS ${MathName} DESTINATION lib/omc/${LIBINSTALLEXT})

install (FILES ${CMAKE_SOURCE_DIR}/Include/Core/Math/Functions.h
${CMAKE_SOURCE_DIR}/Include/Core/Math/ArrayOperations.h
${CMAKE_SOURCE_DIR}/Include/Core/Math/Utility.h
Expand Down

0 comments on commit b11f542

Please sign in to comment.