summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-06-29 14:24:14 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-06-29 14:24:14 (GMT)
commitbbfebcbc13df87173dd8cb59cd34e1e0b3e1c0cc (patch)
treee71063193e19e12cae002d2741ae923fd996d986
parent1cb8d95509006c6533aaefe5a5ea3fe37692b564 (diff)
parent8306108fd6ed58833d5d33cf6425665457dcd902 (diff)
downloadCMake-bbfebcbc13df87173dd8cb59cd34e1e0b3e1c0cc.zip
CMake-bbfebcbc13df87173dd8cb59cd34e1e0b3e1c0cc.tar.gz
CMake-bbfebcbc13df87173dd8cb59cd34e1e0b3e1c0cc.tar.bz2
Merge topic 'compiler-id-simplify-ide-src'
8306108f CMakeDetermineCompilerId: Simplify src reference in IDE projects
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 68f2194..487429b 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -217,7 +217,7 @@ Id flags: ${testflags}
set(id_subsystem 1)
endif()
set(id_dir ${CMAKE_${lang}_COMPILER_ID_DIR})
- get_filename_component(id_src "${src}" NAME)
+ set(id_src "${src}")
configure_file(${CMAKE_ROOT}/Modules/CompilerId/VS-${v}.${ext}.in
${id_dir}/CompilerId${lang}.${ext} @ONLY)
if(CMAKE_VS_MSBUILD_COMMAND AND NOT lang STREQUAL "Fortran")
@@ -256,7 +256,7 @@ Id flags: ${testflags}
set(id_lang "${lang}")
set(id_type ${CMAKE_${lang}_COMPILER_XCODE_TYPE})
set(id_dir ${CMAKE_${lang}_COMPILER_ID_DIR})
- get_filename_component(id_src "${src}" NAME)
+ set(id_src "${src}")
if(CMAKE_XCODE_PLATFORM_TOOLSET)
set(id_toolset "GCC_VERSION = ${CMAKE_XCODE_PLATFORM_TOOLSET};")
else()