Page MenuHomePhabricator

CMAKE_INSTALL_PREFIX is not set for external projects of extenstions
Closed, WontfixPublic

Description

The variable "ep_common_args" containes an argument CMAKE_INSTALL_PREFIX. for "normal" external projects (EP) defined in mitk.git the argument is set to <INSTALL_PATH>, which is correct. For EPs defined in extensions the argument "CMAKE_INSTALL_PREFIX" seems to be not set. This leads to some EPs failing because they expect an install prefix.

How to reproduce: Output "ep_common_args" in an EP cmake script like "Eigen.cmake" -> everything is fine/set. Output "ep_common_args" in an extension EP cmake script -> not set.

Event Timeline

This is some output of the GuidelinesSupportLibrary.cmake external project file in the MITK-ProjectTemplate:

>> ep_common_args: -DCMAKE_CXX_EXTENSIONS:STRING=0;-DCMAKE_CXX_STANDARD:STRING=14;-DCMAKE_CXX_STANDARD_REQUIRED:BOOL=1;-DCMAKE_MACOSX_RPATH:BOOL=TRUE;-DCMAKE_INSTALL_RPATH:STRING=;-DBUILD_TESTING:BOOL=OFF;-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>;-DBUILD_SHARED_LIBS:BOOL=ON;-DCMAKE_BUILD_TYPE:STRING=;-DCMAKE_C_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe;-DCMAKE_CXX_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe;-DCMAKE_C_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3 /bigobj /MP;-DCMAKE_CXX_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3 /GR /EHsc /bigobj /MP ;-DCMAKE_CXX_FLAGS_DEBUG:STRING=/MDd /Zi /Ob0 /Od /RTC1;-DCMAKE_C_FLAGS_DEBUG:STRING=/MDd /Zi /Ob0 /Od /RTC1;-DCMAKE_CXX_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG;-DCMAKE_C_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG;-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG;-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG;-DCMAKE_EXE_LINKER_FLAGS:STRING=/machine:x64;-DCMAKE_SHARED_LINKER_FLAGS:STRING=/machine:x64;-DCMAKE_MODULE_LINKER_FLAGS:STRING=/machine:x64;-DCMAKE_DEBUG_POSTFIX:STRING=d

>> ep_common_cache_args: 

>> ep_common_cache_default_args: -DCMAKE_PREFIX_PATH:PATH=<INSTALL_DIR>;;-DCMAKE_INCLUDE_PATH:PATH=;-DCMAKE_LIBRARY_PATH:PATH=

TL;DR: In ep_common_args: -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>

We need an example to reproduce the behavior.

kislinsk triaged this task as Normal priority.Jul 19 2019, 9:34 AM
kislinsk added a project: Auto-closed.

Hi there! 🙂

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. 🚑

Best wishes,
The MITK devs