Skip to content

Commit

Permalink
introduce cmake variable DESIRED_SIP_VERSION
Browse files Browse the repository at this point in the history
allows to select sip6 with Qt5. Not tested bewond that...
(brainvisa/casa-distro#345)
  • Loading branch information
denisri committed May 22, 2023
1 parent 27744c9 commit aa5d7a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/modules/FindSIP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ if( SIP_VERSION )
set( SIP_INCLUDE_DIRS "${PYTHON_INCLUDE_PATH}" "${SIP_INCLUDE_DIR}" )
set(SIP_FOUND TRUE)
else( SIP_VERSION )
if( DESIRED_QT_VERSION EQUAL 6 )
if( ( DESIRED_QT_VERSION EQUAL 6 ) AND NOT DESIRED_SIP_VERSION )
set( DESIRED_SIP_VERSION 6 )
endif()
if( DESIRED_SIP_VERSION EQUAL 6 )
# Try to find sip in target root path
find_program( SIP_EXECUTABLE
NAMES sip-build${CMAKE_EXECUTABLE_SUFFIX}
Expand Down

0 comments on commit aa5d7a9

Please sign in to comment.