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

EXTRA_CXX_FLAGS not taken into account #4

Open
msis opened this issue Aug 17, 2016 · 1 comment
Open

EXTRA_CXX_FLAGS not taken into account #4

msis opened this issue Aug 17, 2016 · 1 comment

Comments

@msis
Copy link

msis commented Aug 17, 2016

ReMake seems to ignore the configuration EXTRA_CXX_FLAGS:

Using the this example CMakeLists.txt file, ReMake seems to not set CMAKE_CXX_FLAGS to the same value as EXTRA_CXX_FLAGS:

cmake_minimum_required(VERSION 2.6)
include(ReMake)
remake_project(
  test_cxx_flags
  SUMMARY "Test EXTRA_CXX_FLAGS."
  AUTHOR "msis"
  CONTACT "[email protected]"
  EXTRA_CXX_FLAGS "-std=c++11 -Wall -Wextra"
)

versions:

$ remake -v
Built for x86_64-pc-linux-gnu
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ cmake  --version
cmake version 3.5.1

CMake suite maintained and supported by Kitware (kitware.com/cmake)
$ lsb_release  -a 
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:   xenial
@vitcozzolino
Copy link

vitcozzolino commented Nov 17, 2016

I have the same problem, I'm trying to compile and build a project that requires EXTRA_CXX_FLAGS "-std=c++11" but apparently remake constantly ignores the additional flags.

Right now I've bypassed the issue by adding the following line in CMakeList.txt before include(ReMake) :

SET(CMAKE_CXX_FLAGS "-std=c++11" CACHE STRING "" FORCE)

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