summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-05 15:39:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-05 15:39:42 +0200
commit6fd73e314dbf6d52fb0edb2118265630619bc817 (patch)
treeedc69c02347e0c5077b98b1167ea8a47f1d7f559 /CMakeLists.txt
parente0eb955b18a037ebe31cef7b944b779ae7d339a4 (diff)
cmake: fix mingw-w64
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7fcebc97..320b732c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,16 +78,18 @@ otr_merge_translations()
include(opentrack-install)
+
+string(TOUPPER __build_type "${CMAKE_BUILD_TYPE}")
message(STATUS "-- Compile flags:")
#foreach(j C CXX)
foreach(j CXX)
- foreach(i "" "_${CMAKE_BUILD_TYPE}")
+ foreach(i "" "_${__build_type}")
message(STATUS " ${j}${i}: ${CMAKE_${j}_FLAGS${i}}")
endforeach()
endforeach()
message(STATUS "-- Link flags:")
-foreach(j "" "_${CMAKE_BUILD_TYPE}")
+foreach(j "" "_${__build_type}")
#foreach(i EXE SHARED)
foreach(i SHARED)
message(STATUS " LINK_${i}${j}: ${CMAKE_${i}_LINKER_FLAGS${j}}")
@@ -95,7 +97,7 @@ foreach(j "" "_${CMAKE_BUILD_TYPE}")
endforeach()
message(STATUS "-- Static archive flags:")
-foreach(k "" "_${CMAKE_BUILD_TYPE}")
+foreach(k "" "_${__build_type}")
message(STATUS " STATIC${k}: ${CMAKE_STATIC_LINKER_FLAGS${k}}")
endforeach()
message(STATUS "--")