1
0
Fork 0

CMake: explicitly link Boost libraries

Explicitly link Boost libraries for programs that need it to prevent
"undefined reference to `boost::system::get_system_category()'" error
messages from appearing.
This commit is contained in:
Alessandro Menti 2016-12-03 09:28:14 +01:00
parent 73dff25ca1
commit 4c8455c0ee
2 changed files with 2 additions and 0 deletions

View file

@ -32,6 +32,7 @@ target_link_libraries(genapts850
${CMAKE_THREAD_LIBS_INIT}
${SIMGEAR_CORE_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
${Boost_LIBRARIES}
${RT_LIBRARY})
install(TARGETS genapts850 RUNTIME DESTINATION bin)

View file

@ -8,6 +8,7 @@ target_link_libraries(ogr-decode
${CMAKE_THREAD_LIBS_INIT}
${SIMGEAR_CORE_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
${Boost_LIBRARIES}
)
install(TARGETS ogr-decode RUNTIME DESTINATION bin)