Commit 5f1eeb16 authored by Jacob Becker's avatar Jacob Becker

added a way to ingore comman line arg cmake warning

parent c18c1e1b
......@@ -89,6 +89,14 @@ option(TRUST_SVN_CERTIFICATES_AUTOMATICALLY
"Trust SVN certificates automatically" ON)
mark_as_advanced(TRUST_SVN_CERTIFICATES_AUTOMATICALLY)
set(ignore_cmake_commandline_warning_option)
option(IGNORE_CMAKE_COMMANDLINE_WARNINGS
"Ignore the 'Manually-specified variables were not used by the project'" ON)
if (IGNORE_CMAKE_COMMANDLINE_WARNINGS)
set(ignore_cmake_commandline_warning_option "--no-warn-unused-cli")
endif()
#-----------------------------------------------------------------------------
# Setup some standard variables that control various locations and flags.
set (install_location "${CMAKE_CURRENT_BINARY_DIR}/install")
......
......@@ -5,4 +5,6 @@ add_external_project(gdal
PATCH_COMMAND ${CMAKE_COMMAND} -E copy_if_different
${SuperBuild_PROJECTS_DIR}/patches/gdal.CMakeLists.txt
<SOURCE_DIR>/CMakeLists.txt
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
)
......@@ -2,5 +2,6 @@
add_external_project(shiboken
DEPENDS qt python
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
-DDISABLE_DOCSTRINGS:BOOL=ON
)
......@@ -2,6 +2,7 @@
add_external_project(smtk
DEPENDS boost qt shiboken
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
-DBUILD_SHARED_LIBS:BOOL=ON
-DSMTK_BUILD_QT=ON
-DSMTK_BUILD_PYTHON_WRAPPINGS=${shiboken_ENABLED}
......@@ -13,6 +14,7 @@ if(shiboken_ENABLED)
add_external_project_step(install_shiboken_python_plugin
COMMENT "Fixing missing include files."
COMMAND ${CMAKE_COMMAND}
${ignore_cmake_commandline_warning_option}
-DBUILD_SHARED_LIBS:BOOL=ON
-DINSTALL_DIR:PATH=<INSTALL_DIR>
-DSMTK_BIN_DIR:PATH=${install_location}
......
......@@ -2,6 +2,7 @@
add_external_project_or_just_build_dependencies(cmb
DEPENDS remus vxl kml gdal qt python paraview molequeue smtk
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
${extra_cmake_args}
-DKML_DIR:PATH=<INSTALL_DIR>
-DGDAL_DIR:PATH=<INSTALL_DIR>
......@@ -22,6 +23,7 @@ if(APPLE)
add_external_project_step(install_cmb_paraview_plugin
COMMENT "Fixing missing include files."
COMMAND ${CMAKE_COMMAND}
${ignore_cmake_commandline_warning_option}
-DBUILD_SHARED_LIBS:BOOL=ON
-DINSTALL_DIR:PATH=<INSTALL_DIR>
-DCMB_BINARY_DIR:PATH=${SuperBuild_BINARY_DIR}/cmb/src/cmb-build
......
add_external_project(gdal)
add_external_project(gdal
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
)
......@@ -7,4 +7,5 @@ add_external_project(kml
<SOURCE_DIR>/src/kml/base/file_posix.cc
CMAKE_ARGS
-DBUILD_SHARED_LIBS=OFF
${ignore_cmake_commandline_warning_option}
)
......@@ -38,6 +38,7 @@ add_external_project(paraview
ffmpeg hdf5 libxml3 manta matplotlib mpi silo cgns mesa osmesa
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=ON
......
......@@ -3,6 +3,7 @@ add_external_project(png
CMAKE_ARGS
-DPNG_TESTS:BOOL=OFF
${ignore_cmake_commandline_warning_option}
# VTK uses API that gets hidden when PNG_NO_STDIO is TRUE (default).
-DPNG_NO_STDIO:BOOL=OFF
# Always build in release mode since the symlinks on Linux don't
......
......@@ -2,6 +2,7 @@
add_external_project(remus
DEPENDS boost zeroMQ
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
-DBUILD_SHARED_LIBS=OFF
-DRemus_ENABLE_EXAMPLES:BOOL=OFF
-DRemus_NO_SYSTEM_BOOST:BOOL=ON
......
......@@ -2,6 +2,7 @@
add_external_project(shiboken
DEPENDS qt python
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
"-C${CMAKE_BINARY_DIR}/env.cmake"
-DBUILD_SHARED_LIBS:BOOL=ON
-DDISABLE_DOCSTRINGS:BOOL=ON
......
......@@ -2,6 +2,7 @@
add_external_project(smtk
DEPENDS boost qt shiboken
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
"-C${CMAKE_BINARY_DIR}/env.cmake"
-DBUILD_SHARED_LIBS:BOOL=ON
-DSMTK_BUILD_QT=ON
......
......@@ -2,6 +2,7 @@
add_external_project(vxl
DEPENDS png
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
#Needed to make sure we find the correct png lib/includes
-DCMAKE_FIND_FRAMEWORK=LAST
......
......@@ -4,6 +4,7 @@
add_external_project(vxl
DEPENDS png
CMAKE_ARGS
${ignore_cmake_commandline_warning_option}
#Needed to make sure we find the correct png lib/includes
-DCMAKE_FIND_FRAMEWORK=LAST
......
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