summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-22 15:49:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-22 15:49:21 +0100
commit5454c3b3baaf218c5b4edc90c0292a0b2f60ded3 (patch)
treefcf67f2f1059cabd015c6a354168aa1a0343940a /CMakeLists.txt
parent244055c4264dd904148726e3e966d17f15942a4f (diff)
cmake: fix typo
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3e6657df..79ab0b5e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,18 +86,17 @@ otr_merge_translations()
include(opentrack-install)
-
-string(TOUPPER __build_type "${CMAKE_BUILD_TYPE}")
+string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE)
message(STATUS "-- Compile flags:")
#foreach(j C CXX)
foreach(j CXX)
- foreach(i "" "_${__build_type}")
+ foreach(i "" "_${CMAKE_BUILD_TYPE}")
message(STATUS " ${j}${i}: ${CMAKE_${j}_FLAGS${i}}")
endforeach()
endforeach()
message(STATUS "-- Link flags:")
-foreach(j "" "_${__build_type}")
+foreach(j "" "_${CMAKE_BUILD_TYPE}")
#foreach(i EXE SHARED)
foreach(i SHARED)
message(STATUS " LINK_${i}${j}: ${CMAKE_${i}_LINKER_FLAGS${j}}")
@@ -105,8 +104,7 @@ foreach(j "" "_${__build_type}")
endforeach()
message(STATUS "-- Static archive flags:")
-foreach(k "" "_${__build_type}")
+foreach(k "" "_${CMAKE_BUILD_TYPE}")
message(STATUS " STATIC${k}: ${CMAKE_STATIC_LINKER_FLAGS${k}}")
endforeach()
message(STATUS "--")
-