File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.20 )
22
3- # Set proper sysroot for macOS - Conan toolchain sets it to "macosx" which doesn't work with Unix Makefiles
4- # Get the actual SDK path before the toolchain overrides it with FORCE
5- if (APPLE AND NOT DEFINED CMAKE_OSX_SYSROOT)
6- execute_process (
7- COMMAND xcrun --sdk macosx --show-sdk-path
8- OUTPUT_VARIABLE MACOS_SDK_PATH
9- OUTPUT_STRIP_TRAILING_WHITESPACE
10- ERROR_QUIET
11- )
12- if (MACOS_SDK_PATH)
13- set (CMAKE_OSX_SYSROOT "${MACOS_SDK_PATH} " CACHE STRING "macOS SDK Path" FORCE )
14- endif ()
15- endif ()
16-
173project (
184 influxdb-cpp-rest
195 VERSION 1.0.0
@@ -107,6 +93,20 @@ if(USE_CONAN)
10793 message (STATUS "Found generators directory: ${GEN_DIR} " )
10894 endif ()
10995 endif ()
96+
97+ # Fix macOS sysroot after toolchain inclusion - Conan toolchain sets it to "macosx" which doesn't work with Unix Makefiles
98+ if (APPLE )
99+ execute_process (
100+ COMMAND xcrun --sdk macosx --show-sdk-path
101+ OUTPUT_VARIABLE MACOS_SDK_PATH
102+ OUTPUT_STRIP_TRAILING_WHITESPACE
103+ ERROR_QUIET
104+ )
105+ if (MACOS_SDK_PATH)
106+ set (CMAKE_OSX_SYSROOT "${MACOS_SDK_PATH} " CACHE STRING "macOS SDK Path" FORCE )
107+ message (STATUS "Fixed macOS sysroot to: ${MACOS_SDK_PATH} " )
108+ endif ()
109+ endif ()
110110 endif ()
111111endif ()
112112
Original file line number Diff line number Diff line change 33
44cd /d %~dp0 \..
55
6- echo Starting InfluxDB with docker- compose...
7- docker- compose up -d
6+ echo Starting InfluxDB with docker compose...
7+ docker compose up -d
88if errorlevel 1 (
99 echo ERROR: Failed to start InfluxDB
1010 exit /b 1
@@ -13,5 +13,5 @@ if errorlevel 1 (
1313echo Waiting for InfluxDB to be ready...
1414timeout /t 5 /nobreak > nul
1515
16- echo InfluxDB started. Check status with: docker- compose ps
16+ echo InfluxDB started. Check status with: docker compose ps
1717
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
66
77cd " ${PROJECT_ROOT} "
88
9- echo " Starting InfluxDB with docker- compose..."
10- docker- compose up -d
9+ echo " Starting InfluxDB with docker compose..."
10+ docker compose up -d
1111
1212echo " Waiting for InfluxDB to be ready..."
1313timeout=30
@@ -21,5 +21,5 @@ while [ $elapsed -lt $timeout ]; do
2121 elapsed=$(( elapsed + 1 ))
2222done
2323
24- echo " Warning: InfluxDB may not be fully ready yet. Check with: docker- compose ps"
24+ echo " Warning: InfluxDB may not be fully ready yet. Check with: docker compose ps"
2525
Original file line number Diff line number Diff line change 44cd /d %~dp0 \..
55
66echo Stopping InfluxDB...
7- docker- compose down
7+ docker compose down
88if errorlevel 1 (
99 echo WARNING: Failed to stop InfluxDB properly
1010 exit /b 1
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
77cd " ${PROJECT_ROOT} "
88
99echo " Stopping InfluxDB..."
10- docker- compose down
10+ docker compose down
1111
1212echo " InfluxDB stopped."
1313
You can’t perform that action at this time.
0 commit comments