summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-12 02:09:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-12 02:12:29 +0100
commit5a279971bc0f4e647b8e0f648a2b3c68506b2cd3 (patch)
tree87fb77baf0675676bd5c7fba256205d9828077f5
parent3dce8f0a1387da7880bc7a89b29a3abe8507ab28 (diff)
don't set CMAKE_BUILD_TYPE as a non-cache variable
this allows the userconfig more chances to set it manually.
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 53373c1c..7ccdddaa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,6 +57,8 @@ function(sets type)
endwhile()
endfunction()
+sets(STRING CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}")
+
function(fm_run_hook str)
if(COMMAND "${str}")
cmake_language(CALL "${str}")