mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05:00
Drop use of configure_file IMMEDIATE option
Since commit 7d47c693 (Drop compatibility with CMake < 2.4, 2013-10-08)
we no longer need to use the configure_file IMMEDIATE option to support
compatibility modes less than 2.0.
This commit is contained in:
committed by
Brad King
parent
706aab0418
commit
15610bb5b1
@@ -198,12 +198,12 @@ make_directory("${Complex_BINARY_DIR}/make_dir")
|
||||
configure_file(
|
||||
${Complex_SOURCE_DIR}/Library/dummy
|
||||
${Complex_BINARY_DIR}/Library/dummylib.lib
|
||||
COPYONLY IMMEDIATE)
|
||||
COPYONLY)
|
||||
foreach (ext ${CMAKE_SHLIB_SUFFIX};.so;.a;.sl)
|
||||
configure_file(
|
||||
${Complex_SOURCE_DIR}/Library/dummy
|
||||
${Complex_BINARY_DIR}/Library/libdummylib${ext}
|
||||
COPYONLY IMMEDIATE)
|
||||
COPYONLY)
|
||||
endforeach ()
|
||||
|
||||
find_library(FIND_DUMMY_LIB
|
||||
@@ -251,7 +251,7 @@ if (WIN32)
|
||||
configure_file(
|
||||
${Complex_SOURCE_DIR}/Library/dummy
|
||||
"${dir}/${file}"
|
||||
COPYONLY IMMEDIATE)
|
||||
COPYONLY)
|
||||
exec_program(${CMAKE_COMMAND} ARGS "-E write_regv \"${hkey}\" \"${dir}\"")
|
||||
find_path(REGISTRY_TEST_PATH
|
||||
${file}
|
||||
|
||||
Reference in New Issue
Block a user