diff options
Diffstat (limited to 'Modules/CMakeImportBuildSettings.cmake')
-rw-r--r-- | Modules/CMakeImportBuildSettings.cmake | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Modules/CMakeImportBuildSettings.cmake b/Modules/CMakeImportBuildSettings.cmake index a2525ec..f056c2e 100644 --- a/Modules/CMakeImportBuildSettings.cmake +++ b/Modules/CMakeImportBuildSettings.cmake @@ -18,8 +18,15 @@ MACRO(CMAKE_IMPORT_BUILD_SETTINGS SETTINGS_FILE) GREATER ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}) # Check the build tool. - STRING(COMPARE NOTEQUAL - "x${CMAKE_BUILD_TOOL}" "x${CMAKE_BUILD_SETTING_BUILD_TOOL}" + SET(CMAKE_BUILD_TOOL1 "") + IF(CMAKE_BUILD_TOOL) + GET_FILENAME_COMPONENT (CMAKE_BUILD_TOOL1 ${CMAKE_BUILD_TOOL} NAME_WE) + ENDIF(CMAKE_BUILD_TOOL) + SET(CMAKE_BUILD_TOOL2 "") + IF(CMAKE_BUILD_SETTING_BUILD_TOOL) + GET_FILENAME_COMPONENT (CMAKE_BUILD_TOOL2 ${CMAKE_BUILD_SETTING_BUILD_TOOL} NAME_WE) + ENDIF(CMAKE_BUILD_SETTING_BUILD_TOOL) + STRING(COMPARE NOTEQUAL "x${CMAKE_BUILD_TOOL1}" "x${CMAKE_BUILD_TOOL2}" CMAKE_BUILD_TOOL_MISMATCH) IF(CMAKE_BUILD_SETTING_BUILD_TOOL MATCHES "^msdev$") |