Skip to content

Commit

Permalink
- excluded precompiled header just for msvc build
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22033 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Marcus Walther committed Aug 28, 2014
1 parent a506449 commit cbaeb87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions SimulationRuntime/cpp/CMakeLists.txt
Expand Up @@ -17,10 +17,10 @@
cmake_minimum_required (VERSION 2.6)
project(CppSolverInterface)

IF(NOT ANALYZATION_MODE)
IF(NOT ANALYZATION_MODE AND NOT MSVC)
#Precompiled header produces problems if the compiler is not "g++" but "scorep g++"
#include(${CMAKE_SOURCE_DIR}/PrecompiledHeader.cmake)
ENDIF(NOT ANALYZATION_MODE)
include(${CMAKE_SOURCE_DIR}/PrecompiledHeader.cmake)
ENDIF(NOT ANALYZATION_MODE AND NOT MSVC)
#set(CMAKE_VERBOSE_MAKEFILE ON)

option(ANALYZATION_MODE "ANALYZATION_MODE" OFF)
Expand Down
6 changes: 3 additions & 3 deletions SimulationRuntime/cpp/Core/Modelica/CMakeLists.txt
Expand Up @@ -117,9 +117,9 @@ foreach(lib ${LAPACK_LIBRARIES})
endforeach(lib ${LAPACK_LIBRARIES})
#end Fix

IF(NOT ANALYZATION_MODE)
#add_precompiled_header(${ModelicaName} Include/Core/Modelica.h )
ENDIF(NOT ANALYZATION_MODE)
IF(NOT ANALYZATION_MODE AND NOT MSVC)
add_precompiled_header(${ModelicaName} Include/Core/Modelica.h )
ENDIF(NOT ANALYZATION_MODE AND NOT MSVC)

configure_file (
"ModelicaConfig.inc.in"
Expand Down

0 comments on commit cbaeb87

Please sign in to comment.