From db4bccd553fd34de87dcaaa8d68f90982e2ae692 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 10 Jul 2018 06:38:53 +0200 Subject: cmake: spew out effective flags --- CMakeLists.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 "--") + -- cgit v1.2.3