fix: Lower core to find Process

This commit is contained in:
collecting
2025-10-02 08:03:15 +00:00
parent 19452275cc
commit f2f8cdbe80

View File

@@ -313,7 +313,6 @@ find_package(Boost 1.79.0 REQUIRED COMPONENTS context OPTIONAL_COMPONENTS proces
# Check if the optional 'process' component was successfully found. # Check if the optional 'process' component was successfully found.
if(Boost_PROCESS_FOUND) if(Boost_PROCESS_FOUND)
# It was found, so we add a compile definition to enable it in the C++ source. # It was found, so we add a compile definition to enable it in the C++ source.
target_compile_definitions(core PRIVATE HAS_BOOST_PROCESS)
message(STATUS "Found optional Boost.Process, enabling advanced debugger pipe.") message(STATUS "Found optional Boost.Process, enabling advanced debugger pipe.")
else() else()
# It was not found. This is not an error. # It was not found. This is not an error.
@@ -717,6 +716,10 @@ endif()
add_subdirectory(src) add_subdirectory(src)
if(Boost_PROCESS_FOUND)
target_compile_definitions(core PRIVATE HAS_BOOST_PROCESS)
endif()
# Set citron project or citron-cmd project as default StartUp Project in Visual Studio depending on whether QT is enabled or not # Set citron project or citron-cmd project as default StartUp Project in Visual Studio depending on whether QT is enabled or not
if(ENABLE_QT) if(ENABLE_QT)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT citron) set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT citron)