Skip to content

Commit

Permalink
- more -fPIC for Linux.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16807 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Aug 14, 2013
1 parent 445e267 commit b8943cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SimulationRuntime/cpp/Core/DataExchange/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ add_library(${DataExchangeName} SHARED SimData.cpp FactoryExport.cpp )
target_link_libraries (${DataExchangeName} ${Boost_LIBRARIES} )

add_library(${DataExchangeName}_static STATIC SimData.cpp )
target_link_libraries (${DataExchangeName}_static ${Boost_LIBRARIES} )
target_link_libraries (${DataExchangeName}_static ${Boost_LIBRARIES})
if (UNIX)
set_target_properties(${DataExchangeName}_static PROPERTIES COMPILE_FLAGS -fPIC)
endif(UNIX)

install (TARGETS ${DataExchangeName} DESTINATION lib/omc/${LIBINSTALLEXT})
install (TARGETS ${DataExchangeName}_static DESTINATION lib/omc/${LIBINSTALLEXT})
Expand Down

0 comments on commit b8943cc

Please sign in to comment.