CMake: fix boost.python detection on FreeBSD

This commit is contained in:
Adriaan de Groot 2020-01-25 02:26:52 +01:00
parent 10d1c4cf5b
commit b0b9073b40

View File

@ -37,7 +37,12 @@ macro( _find_boost_python3_int boost_version componentname found_var )
find_package( Boost ${boost_version} QUIET COMPONENTS ${_fbp_name} )
string( TOUPPER ${_fbp_name} _fbp_uc_name )
if( Boost_${_fbp_uc_name}_FOUND )
if( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
# No upcasing
set( ${found_var} ${_fbp_name} )
else()
set( ${found_var} ${_fbp_uc_name} )
endif()
break()
endif()
endforeach()