Skip to content
Snippets Groups Projects
Commit 0da7e7c1 authored by Isuru Fernando's avatar Isuru Fernando
Browse files

Workaround for non-working fltk-config

fltk-config is a bash script and on windows, if there's no bash environment
FLTK_VERSION will be empty and result in a CMake error. This fixes it
by quoting the version
parent 9d8beed1
No related branches found
No related tags found
1 merge request!252Workaround for non-working fltk-config
Pipeline #3744 passed
......@@ -544,7 +544,7 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Fltk AND ENABLE_FLTK)
if(FLTK_CONFIG_SCRIPT)
execute_process(COMMAND ${FLTK_CONFIG_SCRIPT} --api-version
OUTPUT_VARIABLE FLTK_VERSION)
string(STRIP ${FLTK_VERSION} FLTK_VERSION)
string(STRIP "${FLTK_VERSION}" FLTK_VERSION)
if(FLTK_VERSION GREATER 1.1)
add_subdirectory(Fltk)
set_config_option(HAVE_FLTK "Fltk")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment