summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-07-24 21:02:19 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-07-24 21:23:32 (GMT)
commit31cab35bb648b8b3a36192d42c56ba10f5247245 (patch)
tree06f2b43de73821543a04a89908fb8c158027ef12 /Modules
parentec155433ed3d719afb52752d63e868b1b23b96fc (diff)
downloadCMake-31cab35bb648b8b3a36192d42c56ba10f5247245.zip
CMake-31cab35bb648b8b3a36192d42c56ba10f5247245.tar.gz
CMake-31cab35bb648b8b3a36192d42c56ba10f5247245.tar.bz2
FindFLTK2: Replace exec_program() with execute_process()
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindFLTK2.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindFLTK2.cmake b/Modules/FindFLTK2.cmake
index a43f7a4..2f6e41d 100644
--- a/Modules/FindFLTK2.cmake
+++ b/Modules/FindFLTK2.cmake
@@ -191,12 +191,12 @@ if(FLTK2_DIR)
if(UNIX)
find_program(FLTK2_CONFIG_SCRIPT fltk2-config PATHS ${FLTK2_BIN_DIR})
if(FLTK2_CONFIG_SCRIPT)
- exec_program(${FLTK2_CONFIG_SCRIPT} ARGS --use-images --ldflags
+ execute_process(COMMAND ${FLTK2_CONFIG_SCRIPT} --use-images --ldflags
OUTPUT_VARIABLE FLTK2_IMAGES_LDFLAGS)
set(FLTK2_LIBS_EXTRACT_REGEX ".*-lfltk2_images (.*) -lfltk2.*")
if("${FLTK2_IMAGES_LDFLAGS}" MATCHES "${FLTK2_LIBS_EXTRACT_REGEX}")
string(REGEX REPLACE " +" ";" FLTK2_IMAGES_LIBS "${CMAKE_MATCH_1}")
- # The EXEC_PROGRAM will not be inherited into subdirectories from
+ # The execute_process() will not be inherited into subdirectories from
# the file that originally included this module. Save the answer.
set(FLTK2_IMAGES_LIBS "${FLTK2_IMAGES_LIBS}" CACHE INTERNAL
"Extra libraries for fltk_images library.")