File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,20 @@ project(cppp-platform VERSION 1.3.0)
2020# Set C++ standard
2121set (CMAKE_CXX_STANDARD 11)
2222
23+ # ----------------------------------------------------------------------------------
24+ # Import build-aux subdirectory.
2325if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /build-aux" )
2426 set (BUILD_AUX "${CMAKE_CURRENT_SOURCE_DIR} /build-aux" )
27+ add_subdirectory ("${BUILD_AUX} " )
28+ message (STATUS "Using '${BUILD_AUX} ' for C++ Plus build-aux directory." )
2529elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /../build-aux" )
2630 set (BUILD_AUX "${CMAKE_CURRENT_SOURCE_DIR} /../build-aux" )
2731else ()
2832 message (FATAL_ERROR "CMake build-aux directory is not exists, try to execute 'setup.cmd' or './setup.sh' to get it." )
2933endif ()
30- set (AUX_DIR "${BUILD_AUX} /cmake" )
31-
32- message (STATUS "Using '${BUILD_AUX} ' for C++ Plus build-aux directory." )
33- add_subdirectory ("${BUILD_AUX} " )
34-
35- include ("${AUX_DIR} /cppp.cmake" )
34+ get_filename_component (BUILD_AUX "${BUILD_AUX} " ABSOLUTE )
35+ include ("${BUILD_AUX} /cmake/cppp.cmake" )
36+ # ----------------------------------------------------------------------------------
3637
3738# Read source files
3839file (READ "${srcdir} /src/architectures.h" ARCHITECTURES)
Original file line number Diff line number Diff line change 1+ 2023-08-24 ChenPi11 <wushengwuxi-msctinoulk@outlook.com>
2+
3+ Optimize the way to import build-aux.
4+
152023-08-09 ChenPi11 <wushengwuxi-msctinoulk@outlook.com>
26
37 Add C++ Plus package infomation.
You can’t perform that action at this time.
0 commit comments