
Originally Posted by
ChrisW67
You have a CMakeLists.txt file referencing a function that CMake cannot find. Where does SetupBoost.cmake exist?
What is the exact sequence of commands executed to run CMake? Working directory? You should see that in the Compile output pane
SetupBoost.cmake is in ws/mke48/cmake/Project/CMake/SetupBoost.cmake
I generated the makefile (before using Qt) by going to ws/mke48/cmake/Project/Build, running 'ccmake' with the CMakeLists in the root source folder, pressing 'c' for configure, 'g' to generate the makefiles, 'make', 'ccmake' again, setting PRE_BUILD to false/off, 'c' again, 'g' again, and 'make' again
The contents for SetupBoost.cmake is below:
macro(IncludeBoost)
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
endmacro(IncludeBoost)
macro(find_boost)
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
set(Boost_components thread date_time regex filesystem system program_options)
endmacro(find_boost)
macro(SetupBoost TargetName)
# message("Setting up boost for target ${TargetName}")
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
# if (NOT DEFINED Boost_USE_MULTITHREADED)
set(Boost_LIBRARIES boost_thread-mt boost_date_time-mt boost_regex-mt boost_filesystem-mt boost_system-mt boost_program_options-mt)
target_link_libraries(${TargetName} ${Boost_LIBRARIES})
endmacro(SetupBoost)
macro(IncludeBoost)
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
endmacro(IncludeBoost)
macro(find_boost)
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
set(Boost_components thread date_time regex filesystem system program_options)
endmacro(find_boost)
macro(SetupBoost TargetName)
# message("Setting up boost for target ${TargetName}")
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
# if (NOT DEFINED Boost_USE_MULTITHREADED)
set(Boost_LIBRARIES boost_thread-mt boost_date_time-mt boost_regex-mt boost_filesystem-mt boost_system-mt boost_program_options-mt)
target_link_libraries(${TargetName} ${Boost_LIBRARIES})
endmacro(SetupBoost)
To copy to clipboard, switch view to plain text mode
Bookmarks