summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-10 06:38:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-10 06:38:53 +0200
commitdb4bccd553fd34de87dcaaa8d68f90982e2ae692 (patch)
tree760a5edafb52a8a35c21c22e90accf21338f94ef /CMakeLists.txt
parentb71989bea657b1ca236a499654cc3e90cefbd2cd (diff)
cmake: spew out effective flags
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ac164d7..7fcebc97 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,3 +77,26 @@ otr_merge_translations()
#install_sources()
include(opentrack-install)
+
+message(STATUS "-- Compile flags:")
+#foreach(j C CXX)
+foreach(j CXX)
+ foreach(i "" "_${CMAKE_BUILD_TYPE}")
+ message(STATUS " ${j}${i}: ${CMAKE_${j}_FLAGS${i}}")
+ endforeach()
+endforeach()
+
+message(STATUS "-- Link flags:")
+foreach(j "" "_${CMAKE_BUILD_TYPE}")
+ #foreach(i EXE SHARED)
+ foreach(i SHARED)
+ message(STATUS " LINK_${i}${j}: ${CMAKE_${i}_LINKER_FLAGS${j}}")
+ endforeach()
+endforeach()
+
+message(STATUS "-- Static archive flags:")
+foreach(k "" "_${CMAKE_BUILD_TYPE}")
+ message(STATUS " STATIC${k}: ${CMAKE_STATIC_LINKER_FLAGS${k}}")
+endforeach()
+message(STATUS "--")
+