Skip to content

Commit

Permalink
COMP: Pass CMAKE_BUILD_TYPE to all projects
Browse files Browse the repository at this point in the history
Thanks to Hans Johnson <hans-johnson@uiowa.edu> for reporting the issue.

See commontk#418
  • Loading branch information
jcfr committed Jan 6, 2014
1 parent 6610310 commit dd05723
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
"MinSizeRel" "RelWithDebInfo")
endif()
if(NOT CMAKE_CONFIGURATION_TYPES)
mark_as_superbuild(VARS CMAKE_BUILD_TYPE ALL_PROJECTS)
endif()

#-----------------------------------------------------------------------------
# Superbuild Option - Enabled by default
Expand Down
1 change: 0 additions & 1 deletion SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ ExternalProject_Add(${proj}
CMAKE_CACHE_ARGS
-DCTK_SUPERBUILD:BOOL=OFF
-DCTK_SUPERBUILD_BINARY_DIR:PATH=${CTK_BINARY_DIR}
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
-DCMAKE_C_COMPILER:FILEPATH=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER}
-DCMAKE_CXX_FLAGS_INIT:STRING=${CMAKE_CXX_FLAGS_INIT}
Expand Down

0 comments on commit dd05723

Please sign in to comment.