Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
Ensure we use the correct generator for building CppUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
awhiemstra committed Aug 9, 2017
1 parent 44c2cd9 commit 47260a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devel/cppunit.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(extra_cmake_args "")
set(extra_cmake_args -G ${CMAKE_GENERATOR})
set(make_tool "make")
if(BUILD_OS_WINDOWS)
set(extra_cmake_args -G "MinGW Makefiles")
Expand All @@ -8,7 +8,7 @@ endif()
ExternalProject_Add(CppUnit
GIT_REPOSITORY https://github.com/Ultimaker/CppUnit.git
GIT_TAG cmake
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ${extra_cmake_args}
CONFIGURE_COMMAND ${CMAKE_COMMAND} ../CppUnit -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ${extra_cmake_args}
BUILD_COMMAND ${make_tool}
INSTALL_COMMAND ${make_tool} install
)

0 comments on commit 47260a3

Please sign in to comment.