Skip to content

Commit

Permalink
Generate static OMCFactory for all targets
Browse files Browse the repository at this point in the history
This is not nice, but at least a consistent escape of the dll hell.
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Mar 20, 2016
1 parent 0a629c7 commit 88cdf8e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 27 deletions.

This file was deleted.

Expand Up @@ -21,18 +21,10 @@ typedef int LOADERRESULT;
class ISimController;
struct SimSettings;

#if !defined(BOOST_EXTENSION_OMCFACTORY_DECL)
#if defined(RUNTIME_STATIC_LINKING)
#define BOOST_EXTENSION_OMCFACTORY_DECL
#else
#define BOOST_EXTENSION_OMCFACTORY_DECL BOOST_EXTENSION_IMPORT_DECL
#endif
#endif

/**
* Create a dynamically linked simulator and serve for solver factories
*/
class BOOST_EXTENSION_OMCFACTORY_DECL OMCFactory
class OMCFactory
{
public:
OMCFactory();
Expand Down
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.9)

project(${OMCFactoryName})

add_library(${OMCFactoryName} OMCFactory.cpp)
add_library(${OMCFactoryName} STATIC OMCFactory.cpp)

if(NOT BUILD_SHARED_LIBS)
set_target_properties(${OMCFactoryName} PROPERTIES COMPILE_DEFINITIONS "RUNTIME_STATIC_LINKING;ENABLE_SUNDIALS_STATIC")
Expand Down
Expand Up @@ -3,8 +3,6 @@
* @{
*/

#include <SimCoreFactory/OMCFactory/FactoryExport.h>

#include <Core/ModelicaDefine.h>
#include <Core/Modelica.h>

Expand Down

0 comments on commit 88cdf8e

Please sign in to comment.