Skip to content

Commit

Permalink
Merge branch '418-support-use-system-option'
Browse files Browse the repository at this point in the history
* 418-support-use-system-option:
  COMP: Pass CMAKE_BUILD_TYPE to all projects
  • Loading branch information
jcfr committed Jan 6, 2014
2 parents 7cf06ad + dd05723 commit b8de393
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 b8de393

Please sign in to comment.