Use old-style boost includes

The Boost::boost style library dependencies don't work
on some CMake versions (couldn't find library -lBoost::boost)

Use ${Boost_INCLUDE_DIRS} in the target_include_dirs() instead.

Cherry-picked (with changes) from: 1a9aa2e92d
This commit is contained in:
John Beard 2019-04-22 00:56:34 +01:00
parent 554e2a4bce
commit 3a744ad72f
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ include_directories( BEFORE
include_directories( SYSTEM
${OCE_INCLUDE_DIRS}
${OCC_INCLUDE_DIR}
${Boost_INCLUDE_DIR}
)
set( K2S_FILES
@ -29,7 +30,7 @@ endif( MINGW )
add_executable( kicad2step ${K2S_FILES} )
target_link_libraries( kicad2step ${wxWidgets_LIBRARIES} ${OCC_LIBRARIES} Boost::boost )
target_link_libraries( kicad2step ${wxWidgets_LIBRARIES} ${OCC_LIBRARIES} )
if( APPLE )
# puts binaries into the *.app bundle while linking