Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 2ecdd1d

Browse files
SimplyDannyOpenModelica-Hudson
authored andcommitted
Regard operating system specific directories
1 parent 1cb1bf8 commit 2ecdd1d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile.common

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,9 @@ nox: 3rdParty/trilinos-nox/CMakeLists.txt
452452
$(MAKE) -C 3rdParty/trilinos-nox/build install
453453
rm -r 3rdParty/trilinos-nox/build/lib/cmake
454454
mkdir -p "$(builddir_lib_omc)/cpp"
455-
cp -pf 3rdParty/trilinos-nox/build/lib/* "$(builddir_lib_omc)/cpp"
455+
(test `uname` = Darwin || test `uname` = Linux) \
456+
&& cp -pf 3rdParty/trilinos-nox/build/lib/* "$(builddir_lib_omc)/cpp" \
457+
|| cp -pf 3rdParty/trilinos-nox/build/bin/* "$(builddir_lib_omc)/cpp"
456458

457459
clean-nox:
458460
test -d 3rdParty/trilinos-nox/build && cd 3rdParty/trilinos-nox/build && make clean

SimulationRuntime/cpp/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,11 @@ IF(USE_TRILINOS)
654654
SET(Trilinos_Path "${CMAKE_SOURCE_DIR}/../../3rdParty/trilinos-nox/build")
655655
ENDIF(MSVC)
656656
SET(TRILINOS_INLCUDE_HOME ${Trilinos_Path}/include)
657-
SET(TRILINOS_LIBRARY_RELEASE_HOME ${Trilinos_Path}/bin)
657+
IF(WIN32)
658+
SET(TRILINOS_LIBRARY_RELEASE_HOME ${Trilinos_Path}/bin)
659+
ELSE(WIN32)
660+
SET(TRILINOS_LIBRARY_RELEASE_HOME ${Trilinos_Path}/lib)
661+
ENDIF(WIN32)
658662
MESSAGE(STATUS "Trilinos include:")
659663
MESSAGE(STATUS "${TRILINOS_INLCUDE_HOME}")
660664
MESSAGE(STATUS "Trilinos library:")

0 commit comments

Comments
 (0)