Commit f9eb32fc authored by Brad King's avatar Brad King
Browse files

ENH: Using only filename without path or extension for comparing build tools.

parent fdd4cf7c
......@@ -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$")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment