mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Some are user facing.
Found using
codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt`
whereby the whitelist contained:
ans
dum
helpfull
emmited
emmitted
buil
iff
isnt
nto
ot
pathes
substract
te
todays
upto
whitespaces
19 lines
544 B
CMake
19 lines
544 B
CMake
# a simple test case
|
|
cmake_minimum_required (VERSION 2.6)
|
|
project (OutOfSource)
|
|
|
|
add_subdirectory(SubDir)
|
|
|
|
get_directory_property(ANIMAL DIRECTORY OutOfSourceSubdir DEFINITION WEASELS)
|
|
get_directory_property(ANIMALREL DIRECTORY SubDir/../OutOfSourceSubdir DEFINITION WEASELS)
|
|
if(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
|
|
message(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.")
|
|
endif()
|
|
|
|
configure_file(
|
|
${OutOfSource_SOURCE_DIR}/testdp.h.in
|
|
${OutOfSource_BINARY_DIR}/SubDir/OutOfSourceSubdir/testdp.h
|
|
)
|
|
|
|
set(KEN 1)
|