77543bde41
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
13 lines
583 B
CMake
13 lines
583 B
CMake
# Here, Eight depends on Seven, which has the same dependencies as Five.
|
|
# If the dependencies of Five are emitted, and then we attempt to emit the
|
|
# dependencies of Seven, then we find that they have already been done. So:
|
|
# Original line: Eight Five
|
|
# Add deps of Five: Eight Five Two ... NoDepA
|
|
# Now, we must make sure that Seven gets inserted between Five and Two, and
|
|
# not at the end. Unfortunately, if we get it wrong, the test will only
|
|
# fail on a platform where the link order makes a difference.
|
|
link_libraries( Eight Five )
|
|
|
|
add_executable( exec2 ExecMain.c )
|
|
|