diff --git a/cmake/GtsamPrinting.cmake b/cmake/GtsamPrinting.cmake index c68679667..2181652e5 100644 --- a/cmake/GtsamPrinting.cmake +++ b/cmake/GtsamPrinting.cmake @@ -51,11 +51,10 @@ function(print_build_options_for_target target_name_) # print_padded(GTSAM_COMPILE_DEFINITIONS_PRIVATE) print_padded(GTSAM_COMPILE_DEFINITIONS_PUBLIC) - foreach(build_type ${GTSAM_CMAKE_CONFIGURATION_TYPES}) - string(TOUPPER "${build_type}" build_type_toupper) - # print_padded(GTSAM_COMPILE_OPTIONS_PRIVATE_${build_type_toupper}) - print_padded(GTSAM_COMPILE_OPTIONS_PUBLIC_${build_type_toupper}) - # print_padded(GTSAM_COMPILE_DEFINITIONS_PRIVATE_${build_type_toupper}) - print_padded(GTSAM_COMPILE_DEFINITIONS_PUBLIC_${build_type_toupper}) - endforeach() + string(TOUPPER "${CMAKE_BUILD_TYPE}" build_type_toupper) + # print_padded(GTSAM_COMPILE_OPTIONS_PRIVATE_${build_type_toupper}) + print_padded(GTSAM_COMPILE_OPTIONS_PUBLIC_${build_type_toupper}) + # print_padded(GTSAM_COMPILE_DEFINITIONS_PRIVATE_${build_type_toupper}) + print_padded(GTSAM_COMPILE_DEFINITIONS_PUBLIC_${build_type_toupper}) + endfunction()