Commit f061168d authored by Emmanuelle Sarrazin's avatar Emmanuelle Sarrazin

BUG: Force C++14 compilation for libitk and and patches

parent 510c0215
set BUILD_DIR=%SRC_DIR%\bld
mkdir %BUILD_DIR%
cd %BUILD_DIR%
SET CXX_FLAGS="%CXX_FLAGS% /MP"
REM Configure Step
cmake -G "%CMAKE_GENERATOR%" ^
-D BUILD_SHARED_LIBS:BOOL=ON ^
-D BUILD_TESTING:BOOL=OFF ^
-D BUILD_EXAMPLES:BOOL=OFF ^
-D ITK_USE_SYSTEM_EXPAT:BOOL=ON ^
-D ITK_USE_SYSTEM_JPEG:BOOL=ON ^
-D ITK_USE_SYSTEM_PNG:BOOL=ON ^
-D ITK_USE_SYSTEM_TIFF:BOOL=ON ^
-D ITK_USE_SYSTEM_ZLIB:BOOL=ON ^
-D ITK_USE_KWSTYLE:BOOL=OFF ^
-D ITK_BUILD_DEFAULT_MODULES:BOOL=ON ^
-D Module_ITKReview:BOOL=ON ^
-D "CMAKE_SYSTEM_PREFIX_PATH:PATH=%LIBRARY_PREFIX%" ^
-D "CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX%" ^
"%SRC_DIR%"
if errorlevel 1 exit 1
REM Build step
cmake --build . --config Release
if errorlevel 1 exit 1
REM Install step
cmake -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -P %BUILD_DIR%\cmake_install.cmake
if errorlevel 1 exit 1
#!/bin/bash
set -e # Abort on error
# When building 32-bits on 64-bit system this flags is not automatically set by conda-build
if [ $ARCH == 32 -a "${OSX_ARCH:-notosx}" == "notosx" ]; then
export CFLAGS="${CFLAGS} -m32"
......@@ -7,9 +9,13 @@ if [ $ARCH == 32 -a "${OSX_ARCH:-notosx}" == "notosx" ]; then
fi
BUILD_DIR=${SRC_DIR}/build
mkdir ${BUILD_DIR}
[[ -d ${BUILD_DIR} ]] || mkdir ${BUILD_DIR}
cd ${BUILD_DIR}
#Force C++14 compilation
export CFLAGS=${CXXFLAGS//-std=c++17/-std=c++14}
export CXXFLAGS=${CXXFLAGS//-std=c++17/-std=c++14}
cmake \
-G "Ninja" \
${CMAKE_ARGS} \
......
......@@ -5,9 +5,11 @@ package:
version: "{{version}}"
source:
url: https://github.com/InsightSoftwareConsortium/ITK/archive/v{{version}}.tar.gz
sha256: b352060d8b7289916a3cb033dfdbcf423423ba474643b79706966e679268e3d7
#sha256: 98c2fd826e1987d797521d83031fcaa328135daf6524f7823363d66ab288c545
- url: https://github.com/InsightSoftwareConsortium/ITK/archive/v{{version}}.tar.gz
sha256: b352060d8b7289916a3cb033dfdbcf423423ba474643b79706966e679268e3d7
- patches:
- patches/itk-1-fftw-all.diff
- patches/itk-2-itktestlib-all.diff
build:
number: 0
......
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment