Skip to content

Commit

Permalink
- more attempts to fix SimulationRuntime CPP build.
Browse files Browse the repository at this point in the history
- use -fPIC for UNIX
- #include <fstream> in GlobalSettings.cpp

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16805 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Aug 14, 2013
1 parent 2deda72 commit fd7ca01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
@@ -1,7 +1,7 @@
#include "stdafx.h"
//#define BOOST_EXTENSION_GLOBALSETTINGS_DECL BOOST_EXTENSION_EXPORT_DECL
#include "GlobalSettings.h"
#include <fstream>

GlobalSettings::GlobalSettings()
: _startTime (0.0)
Expand Down
Expand Up @@ -3,7 +3,10 @@ cmake_minimum_required (VERSION 2.6)
project(${OMCFactoryName})
# add the system default implementation library
add_library(${OMCFactoryName} STATIC OMCFactory.cpp)
target_link_libraries( ${OMCFactoryName} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} )
target_link_libraries( ${OMCFactoryName} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS})
if (UNIX)
set_target_properties(${OMCFactoryName} PROPERTIES COMPILE_FLAGS -fPIC)
endif(UNIX)

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

Expand Down

0 comments on commit fd7ca01

Please sign in to comment.