summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-01-07 18:28:18 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-01-07 18:28:18 (GMT)
commit0296089291d59568780baea30332b66ef24f1df4 (patch)
tree1359e6090c6d3d689ca27ddb7d790f2f76e49cae /Modules
parent1c646e4839418d51e1c9673929d55021f2ed9865 (diff)
parent64e26850fc2a98994424a34eada9bec90f384c7e (diff)
downloadCMake-0296089291d59568780baea30332b66ef24f1df4.zip
CMake-0296089291d59568780baea30332b66ef24f1df4.tar.gz
CMake-0296089291d59568780baea30332b66ef24f1df4.tar.bz2
Merge topic 'cray-prgev-cleanup'
64e26850 CrayPrgEnv: Cleanup binaries from implicit compile flag detection
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/CrayPrgEnv.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/Compiler/CrayPrgEnv.cmake b/Modules/Compiler/CrayPrgEnv.cmake
index 61daa0f..fa39b00 100644
--- a/Modules/Compiler/CrayPrgEnv.cmake
+++ b/Modules/Compiler/CrayPrgEnv.cmake
@@ -16,13 +16,16 @@ macro(__cray_extract_args cmd tag_regex out_var make_absolute)
endmacro()
function(__cray_extract_implicit src compiler_cmd link_cmd lang include_dirs_var link_dirs_var link_libs_var)
+ set(BIN "${CMAKE_PLATFORM_INFO_DIR}/CrayExtractImplicit_${lang}.bin")
execute_process(
- COMMAND ${CMAKE_${lang}_COMPILER}
- ${CMAKE_${lang}_VERBOSE_FLAG} -o cray_extract_implicit_${lang} ${src}
+ COMMAND ${CMAKE_${lang}_COMPILER} ${CMAKE_${lang}_VERBOSE_FLAG} -o ${BIN}
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE error
)
+ if(EXISTS "${BIN}")
+ file(REMOVE "${BIN}")
+ endif()
set(include_dirs)
set(link_dirs)
set(link_libs)