summaryrefslogtreecommitdiffstats
path: root/Tests/TryCompile/Inner
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-16 18:28:12 (GMT)
committerBrad King <brad.king@kitware.com>2022-02-16 18:28:12 (GMT)
commit4b47c4d0cd6f51b08f72113565a7a8bb6a1ad982 (patch)
treea2030190f4df2b74dd348db00c67c858876e06f8 /Tests/TryCompile/Inner
parent1e495fdab92b8ce5f2778c0cbc5e0ed55b056b98 (diff)
downloadCMake-4b47c4d0cd6f51b08f72113565a7a8bb6a1ad982.zip
CMake-4b47c4d0cd6f51b08f72113565a7a8bb6a1ad982.tar.gz
CMake-4b47c4d0cd6f51b08f72113565a7a8bb6a1ad982.tar.bz2
Tests: Use idiomatic try_compile calls in TryCompile test
Do not duplicate the `CMakeFiles/CMakeTmp` portion of the path. The `try_compile` command adds that automatically.
Diffstat (limited to 'Tests/TryCompile/Inner')
-rw-r--r--Tests/TryCompile/Inner/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/TryCompile/Inner/CMakeLists.txt b/Tests/TryCompile/Inner/CMakeLists.txt
index d8c22d0..9f89af2 100644
--- a/Tests/TryCompile/Inner/CMakeLists.txt
+++ b/Tests/TryCompile/Inner/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.12)
project(TryCompileInner C)
try_compile(SHOULD_PASS
- ${TryCompileInner_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp
+ ${TryCompileInner_BINARY_DIR}
${TryCompileInner_SOURCE_DIR}/../pass.c
OUTPUT_VARIABLE TRY_OUT
)