COIN-OR::LEMON - Graph Library

Opened 8 years ago

Closed 8 years ago

#388 closed enhancement (fixed)

Can't build without compiling the tests using CMAKE

Reported by: alpar Owned by: ladanyi
Priority: major Milestone: LEMON 1.3 release
Component: build system Version: hg main
Keywords: Cc:
Revision id:

Description

Using CMAKE, I see no way to switch of the compilations of the test codes. Which is actually the default choice with automake.

Any extra compilation test is a plus, but this makes a simple build with CMAKE very slow.

Attachments (2)

e20fecd1945f_cmake_make_check.patch (935 bytes) - added by ladanyi 8 years ago.
48e29534cf03.patch (974 bytes) - added by alpar 8 years ago.

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by ladanyi

comment:1 Changed 8 years ago by ladanyi

  • Status changed from new to assigned

Patch attached.

comment:2 Changed 8 years ago by alpar

  • Resolution set to done
  • Status changed from assigned to closed

[e20fecd1945f] switches off the by default compilation of the tests, and adds a new make check target which compiles and runs the tests (similarly to the makefiles created by automake).

[3ffd46dc8e01] adds a new build type called Maintainer. Using this build type the tests are compiled and also run by default (i.e. by a simple make).
You can change the build type without cmake-gui as follows.

cd lemon_source
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Maintainer ..
make

comment:3 follow-up: Changed 8 years ago by alpar

  • Resolution done deleted
  • Status changed from closed to reopened

The LP and MIP tests are still built by 'make'.

Changed 8 years ago by alpar

comment:4 in reply to: ↑ 3 Changed 8 years ago by alpar

Replying to alpar:

The LP and MIP tests are still built by 'make'.

I hope [48e29534cf03] solves this issue correctly.

comment:5 Changed 8 years ago by alpar

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.