all repos — mgba @ ef380f27d5d33548023d242e69ca0ba0a19bf940

mGBA Game Boy Advance Emulator

Fix outputing the right variable names in find_feature
Jeffrey Pfau jeffrey@endrift.com
Wed, 08 Oct 2014 01:03:35 -0700
commit

ef380f27d5d33548023d242e69ca0ba0a19bf940

parent

e65ef28486ec50f795b17b95a29d77262e6586e7

1 files changed, 7 insertions(+), 6 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -37,12 +37,13 @@ message(WARNING "Requested module ${REQUIRE} missing for feature ${FEATURE_NAME}. Feature disabled.")

set(${FEATURE_NAME} OFF PARENT_SCOPE) return() endif() - set(${REQUIRE}_CFLAGS_OTHER ${${REQUIRE}_CFLAGS_OTHER} PARENT_SCOPE) - set(${REQUIRE}_FOUND ${${REQUIRE}_FOUND} PARENT_SCOPE) - set(${REQUIRE}_INCLUDE_DIRS ${${REQUIRE}_INCLUDE_DIRS} PARENT_SCOPE) - set(${REQUIRE}_LIBRARIES ${${REQUIRE}_LIBRARIES} PARENT_SCOPE) - set(${REQUIRE}_LIBRARY_DIRS ${${REQUIRE}_LIBRARY_DIRS} PARENT_SCOPE) - set(${REQUIRE}_LDFLAGS_OTHER ${${REQUIRE}_LDFLAGS_OTHER} PARENT_SCOPE) + string(TOUPPER ${REQUIRE} UREQUIRE) + set(${UREQUIRE}_CFLAGS_OTHER ${${REQUIRE}_CFLAGS_OTHER} PARENT_SCOPE) + set(${UREQUIRE}_FOUND ${${REQUIRE}_FOUND} PARENT_SCOPE) + set(${UREQUIRE}_INCLUDE_DIRS ${${REQUIRE}_INCLUDE_DIRS} PARENT_SCOPE) + set(${UREQUIRE}_LIBRARIES ${${REQUIRE}_LIBRARIES} PARENT_SCOPE) + set(${UREQUIRE}_LIBRARY_DIRS ${${REQUIRE}_LIBRARY_DIRS} PARENT_SCOPE) + set(${UREQUIRE}_LDFLAGS_OTHER ${${REQUIRE}_LDFLAGS_OTHER} PARENT_SCOPE) endforeach() endfunction()