Skip to content

Commit dc2b287

Browse files
Merge pull request #1153 from arcaneframework/dev/gg-use-release-only-if-arccore-build-mode-not-specified
Set by default 'CMAKE_BUILD_TYPE' to 'Release' only if 'ARCCORE_BUILD_MODE' is not defined
2 parents 521192a + d47507e commit dc2b287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_common/build_all/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ arcane_set_if_unset(ARCANE_WANT_CHECK FALSE BOOL "Compilation with additional ch
4949
set(BUILD_SHARED_LIBS TRUE)
5050

5151
# Compile en release par défaut si rien n'est spécifié
52-
if (NOT DEFINED CMAKE_BUILD_TYPE)
52+
if (NOT DEFINED CMAKE_BUILD_TYPE AND NOT DEFINED ARCCORE_BUILD_MODE)
5353
set(CMAKE_BUILD_TYPE Release)
5454
endif()
5555

0 commit comments

Comments
 (0)