print cmake variables

This commit is contained in:
Rick Vogel 2024-02-28 19:29:21 +01:00
parent b7380d7543
commit d43285809a
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
${QSK_INSTALL_LIBS} OPTIONAL)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
get_filename_component(compiler ${CMAKE_CXX_COMPILER} NAME_WE)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_NAME STREQUAL "Windows" AND compiler STREQUAL "g++")
message(STATUS "CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}")
message(STATUS "CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}")
message(STATUS "compiler: ${compiler}")
#target_compile_options(${target} PRIVATE "-Wa,-mbig-obj")
set_source_files_properties(QskQml.cpp PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")
endif()