Skip to content

Commit

Permalink
Remove usertab.c from cppruntime as it should never be compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed May 24, 2015
1 parent dff6c83 commit a63f61b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SimulationRuntime/cpp/Core/ModelicaExternalC/CMakeLists.txt
Expand Up @@ -3,7 +3,10 @@ cmake_minimum_required (VERSION 2.8.6)
project(${ModelicaExternalName})
include_directories (${MODELICAEXTERNALCDIR})
include_directories (${USERTABDIR})
add_library(${ModelicaExternalName} ${MODELICAEXTERNALCDIR}/ModelicaStandardTables.c ${MODELICAEXTERNALCDIR}/ModelicaMatIO.c ${MODELICAEXTERNALCDIR}/ModelicaInternal.c ${MODELICAEXTERNALCDIR}/ModelicaStrings.c ${USERTABDIR}/usertab.c )
add_library(${ModelicaExternalName} ${MODELICAEXTERNALCDIR}/ModelicaStandardTables.c ${MODELICAEXTERNALCDIR}/ModelicaMatIO.c ${MODELICAEXTERNALCDIR}/ModelicaInternal.c ${MODELICAEXTERNALCDIR}/ModelicaStrings.c )
# Note: usertab.c cannot be gotten from OMLibraries, since they are not included in OMCompiler.git
# usertab.c is not a part of ModelicaStandardTables, etc anyway
# usertab.c is also a dummy implementation that the user is supposed to provide in some cases. It is not supposed to be compiled.
add_library(${ModelicaTablesName} ${MODELICAEXTERNALCDIR}/ModelicaStandardTables.c ${MODELICAEXTERNALCDIR}/ModelicaMatIO.c ${USERTABDIR}/usertab.c)
if (UNIX)
set_target_properties(${ModelicaExternalName} PROPERTIES COMPILE_FLAGS -fPIC)
Expand Down

0 comments on commit a63f61b

Please sign in to comment.