Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure on cmake 2.8.11 #54

Closed
mlubin opened this issue May 8, 2015 · 3 comments
Closed

failure on cmake 2.8.11 #54

mlubin opened this issue May 8, 2015 · 3 comments

Comments

@mlubin
Copy link

mlubin commented May 8, 2015

cmake 2.8.11 is the latest version for which I could find a PPA which runs on travis. I get the following error trying to compile mp:

-- Build type: Release
-- Performing Test HAVE_STD_CPP11_FLAG
-- Performing Test HAVE_STD_CPP11_FLAG - Failed
-- Performing Test HAVE_STD_CPP0X_FLAG
-- Performing Test HAVE_STD_CPP0X_FLAG - Success
CMake Error at CMakeLists.txt:209 (target_compile_definitions):
  target_compile_definitions called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:243 (add_mp_library)

https://travis-ci.org/dpo/ampl.jl/jobs/61819188#L217
JuliaSmoothOptimizers/AmplNLReader.jl#7

@vitaut
Copy link
Contributor

vitaut commented May 8, 2015

Thanks for the bug report. The minimum supported CMake version right now is 2.8.12 (I think I need to update cmake_minimum_required) because of target_compile_options. So I recommend using a recent version of CMake from here instead of using a PPA.

@mlubin
Copy link
Author

mlubin commented May 9, 2015

Okay, I got things working by just downloading the linux binary from the cmake page. You may want to bump the minimum version in CMakeLists.txt though.

@vitaut
Copy link
Contributor

vitaut commented May 11, 2015

Great. Bumped the CMake version in 466a645.

@vitaut vitaut closed this as completed May 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants