View Issue Details

IDProjectCategoryView StatusLast Update
0004575Slicer4Core: Building (CMake, Superbuild)public2018-07-05 17:57
ReporterinortonAssigned Tojcfr 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0004575: SlicerConfig unsets CMAKE_CXX_FLAGS
Description

The following line ends up setting CMAKE_*_FLAGS to the empty string in several projects I've checked (mac and windows):

https://github.com/Slicer/Slicer/blob/master/CMake/SlicerConfig.cmake.in#L462

If I'm following correctly, the "@Slicer_CMAKE_CXX_FLAGS_CONFIG@" substitution variable there is supposed to be set at the following line:

https://github.com/Slicer/Slicer/blob/master/CMake/SlicerGenerateSlicerConfig.cmake#L25

But it looks like ep_common_cxx_flags only exists at the SuperBuild level now (?), not at the application project level (Slicer-build directory).

This means that find_package(Slicer ...) will unset an existing variable, before even including the Use file.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-07-05 17:57 inorton New Issue
2018-07-05 17:57 inorton Status new => assigned
2018-07-05 17:57 inorton Assigned To => jcfr