mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Don't set CMAKE_BUILD_TYPE if fmt is a subproject (#1081)
This commit is contained in:
parent
76d326a2a2
commit
53379dfd0c
@ -27,7 +27,7 @@ endfunction()
|
|||||||
# Set the default CMAKE_BUILD_TYPE to Release.
|
# Set the default CMAKE_BUILD_TYPE to Release.
|
||||||
# This should be done before the project command since the latter can set
|
# This should be done before the project command since the latter can set
|
||||||
# CMAKE_BUILD_TYPE itself (it does so for nmake).
|
# CMAKE_BUILD_TYPE itself (it does so for nmake).
|
||||||
if (NOT CMAKE_BUILD_TYPE)
|
if (MASTER_PROJECT AND NOT CMAKE_BUILD_TYPE)
|
||||||
join(doc "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or "
|
join(doc "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or "
|
||||||
"CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
"CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
||||||
set(CMAKE_BUILD_TYPE Release CACHE STRING ${doc})
|
set(CMAKE_BUILD_TYPE Release CACHE STRING ${doc})
|
||||||
|
Loading…
Reference in New Issue
Block a user