Commit 1e79ca0d authored by Chris Cantwell's avatar Chris Cantwell

Fix additional warnings from full build.

parent ee62b2bb
Pipeline #1144 passed with stages
......@@ -88,6 +88,13 @@ IF (NEKTAR_BUILD_PYTHON)
# If we can't find it, pull it from git and compile it
IF (NOT BOOST_NUMPY_LIB)
INCLUDE(ExternalProject)
IF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
SET(WARNING_FLAGS "-Wno-cpp")
ENDIF()
IF (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
SET(WARNING_FLAGS "-Wno-#warnings")
ENDIF()
EXTERNALPROJECT_ADD(
boost-numpy
PREFIX ${TPSRC}
......@@ -101,7 +108,7 @@ IF (NEKTAR_BUILD_PYTHON)
INSTALL_DIR ${TPDIST}
CONFIGURE_COMMAND ${CMAKE_COMMAND}
-G ${CMAKE_GENERATOR} -DCMAKE_INSTALL_PREFIX:PATH=${TPDIST}
-DCMAKE_CXX_FLAGS="-Wno-cpp"
-DCMAKE_CXX_FLAGS=${WARNING_FLAGS}
-DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
-DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DLIBRARY_TYPE=STATIC
${TPSRC}/boost-numpy
......
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7)
PROJECT(libccmio)
# compile in Release mode by default
SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
......
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