Skip to content
Snippets Groups Projects
Commit 3cb2a0c8 authored by Martin Beseda's avatar Martin Beseda
Browse files

Testing own FindBoost.cmake

parent 9f17feea
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(Boost_USE_MULTITHREADED ON)
set(Boost_DEBUG ON)
set(CMAKE_INCLUDE_PATH ${BOOST_INCLUDEDIR} "${CMAKE_CURRENT_LIST_DIR}/external_dependencies/boost" ${CMAKE_INCLUDE_PATH})
set(CMAKE_LIBRARY_PATH ${BOOST_LIBRARYDIR} "${CMAKE_CURRENT_LIST_DIR}/external_dependencies/boost/stage/lib" ${CMAKE_LIBRARY_PATH})
#set(CMAKE_INCLUDE_PATH ${BOOST_INCLUDEDIR} "${CMAKE_CURRENT_LIST_DIR}/external_dependencies/boost" ${CMAKE_INCLUDE_PATH})
#set(CMAKE_LIBRARY_PATH ${BOOST_LIBRARYDIR} "${CMAKE_CURRENT_LIST_DIR}/external_dependencies/boost/stage/lib" ${CMAKE_LIBRARY_PATH})
message("CMAKE_INCLUDE_PATH: ${CMAKE_INCLUDE_PATH}")
message("CMAKE_LIBRARY_PATH: ${CMAKE_LIBRARY_PATH}")
......
......@@ -142,15 +142,11 @@ foreach(LIBNAME ${REQUESTED_BOOST_LIBS})
message(FATAL_ERROR "Boost library ${LIBNAME} was NOT found!\
Please, set variable BOOST_LIBRARYDIR to the correct path and check the library names\
format in your Boost installation.")
else()
message("${LIBNAME} was found: ${${LIBNAME}}")
endif()
# Make the target of the same name as the library
#add_library(${LIBNAME}_tar STATIC IMPORTED)
get_filename_component(TMP ${${LIBNAME}} ABSOLUTE)
#set_property(TARGET ${LIBNAME}_tar PROPERTY IMPORTED_LOCATION ${TMP})
list(APPEND Boost_LIBRARIES ${TMP})
list(APPEND Boost_LIBRARIES ${${LIBNAME}})
endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment