View Issue Details

IDProjectCategoryView StatusLast Update
0002657Slicer4Core: Extensionspublic2017-06-07 23:27
Reporterpaulcm Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002657: ExperimentalUpload target ignore CMAKE_{C/CXX}_COMPILER
Description

I encoutered a problem running "make ExperimentalUpload" in my
extensions build directory. I'm using OS X Lion so the default compiler
setting in CMake for the Slicer build is /usr/bin/c++ (clang++). But due
to crashing CLI's I changed it to /usr/bin/g++ (llvm-g++-4.2) for both,
the Slicer build and my extensions build.

But when I run make ExperimentalUpload it fails with following message:

Variable CMAKE_CXX_COMPILER defined prior calling 'find_package(Slicer)'
does NOT match value used to configure Slicer. It probably means that a
different CMAKE_CXX_COMPILER has been used to configure this project and
Slicer.

CMAKE_CXX_COMPILER=/usr/bin/c++

Slicer_CMAKE_CXX_COMPILER=/usr/bin/g++
Call Stack (most recent call first):
/Users/Paul/Masterarbeit/Development/release/Slicer-build/SlicerConfig.cmake:335
(slicer_config_set_compiler_ep)
CMakeLists.txt:22 (find_package)

Why does this happen ? Because when I check the CMake settings of my
extension it's g++, so it seems like the ExperimentalUpload is using the
default compiler !?

TagsNo tags attached.

Activities

jcfr

jcfr

2012-10-17 06:52

administrator   ~0006590

Pushed topic 2657-fix-experimentalupload-ensure-cmake-cxx-compiler-passed on my fork.

See https://github.com/jcfr/Slicer/tree/2657-fix-experimentalupload-ensure-cmake-cxx-compiler-passed

Let me know if it solves the issue.

jcfr

jcfr

2012-10-18 16:32

administrator   ~0006632

Hi Paul,

Did you have a chance to try the proposed patch ?

Thanks
Jc

paulcm

paulcm

2012-10-18 19:59

reporter   ~0006635

Hi Jc,

I tried the proposed patch and it worked.

Thanks
Paul

jcfr

jcfr

2012-10-19 06:05

administrator   ~0006638

Thanks Paul.

Fixed in r21216
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21216

jcfr

jcfr

2014-03-06 04:50

administrator   ~0010738

Closing resolved issues that have not been updated in more than 3 months

jcfr

jcfr

2017-06-07 23:27

administrator   ~0014541

Fix committed to 1683-launcher-with-output branch.

Related Changesets

Slicer: 1683-launcher-with-output 61207725

2012-10-19 10:04:29

jcfr

Details Diff
COMP: Ensure CMAKE_{C,CXX}_COMPILER is passed when building extensions custom target

See http://www.na-mic.org/Bug/view.php?id=2657

Fixes 0002657

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21216 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Extensions/CMake/SlicerBlockBuildPackageAndUploadExtension.cmake Diff File
mod - Extensions/CMake/SlicerBlockUploadExtension.cmake Diff File

Issue History

Date Modified Username Field Change
2012-10-17 05:59 jcfr New Issue
2012-10-17 05:59 jcfr Status new => assigned
2012-10-17 05:59 jcfr Assigned To => jcfr
2012-10-17 06:00 jcfr Reporter jcfr => paulcm
2012-10-17 06:00 jcfr Target Version => Slicer 4.2.0 - coming release
2012-10-17 06:52 jcfr Note Added: 0006590
2012-10-17 06:52 jcfr Status assigned => feedback
2012-10-18 16:32 jcfr Note Added: 0006632
2012-10-18 19:59 paulcm Note Added: 0006635
2012-10-19 06:05 jcfr Note Added: 0006638
2012-10-19 06:05 jcfr Status feedback => resolved
2012-10-19 06:05 jcfr Fixed in Version => Slicer 4.2.0 - coming release
2012-10-19 06:05 jcfr Resolution open => fixed
2014-03-06 04:50 jcfr Note Added: 0010738
2014-03-06 04:51 jcfr Status resolved => closed
2017-06-07 23:27 jcfr Changeset attached => Slicer 1683-launcher-with-output 61207725
2017-06-07 23:27 jcfr Note Added: 0014541