Skip to content

Commit

Permalink
Make configure options a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bialger committed Sep 17, 2024
1 parent 32a6990 commit 69664d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ if (NOT Qt6_FOUND)
set(QT_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/qt-build")
file(MAKE_DIRECTORY ${QT_BUILD_DIR})
message(STATUS "Configuring...")
set(QT_CONFIGURE_OPTIONS -static -c++std c++20 -static-runtime -prefix ${QT_BUILD_DIR})

if (WIN32)
execute_process(COMMAND "${QT_SOURCE_DIR}/configure.bat" -static -c++std c++20 -skip qtzlib -prefix ${QT_BUILD_DIR}
execute_process(COMMAND "${QT_SOURCE_DIR}/configure.bat" ${QT_CONFIGURE_OPTIONS}
WORKING_DIRECTORY ${QT_BUILD_DIR})
else ()
execute_process(COMMAND "${QT_SOURCE_DIR}/configure" -static -c++std c++20 -prefix ${QT_BUILD_DIR}
execute_process(COMMAND "${QT_SOURCE_DIR}/configure" ${QT_CONFIGURE_OPTIONS}
WORKING_DIRECTORY ${QT_BUILD_DIR})
endif ()

Expand Down

0 comments on commit 69664d0

Please sign in to comment.