config.h not seen in build directory, must be put in parent to build on macOS
When building using specific build directory, cmake
/cmake-gui
will create config.h
in the stated build directory. The build process fails unless it's found in build directory's parent.
Example:
cd ~/Development/pan;
rm -rf std-build;
mkdir -p std-build;
cmake -B std-build;
cmake-gui -B std-build
This creates config.h in ~\Development\pan\std-build
.
Running
cmake --build std-build -j 8
fails unless config.h is copied into ~\Development\pan
prior to building. The build errors due to not being able to find things as libnotify.h when notify isn't even selected in cmake-gui
, or the defines for PAN_DBUS_SERVICE_NAME
and PAN_DBUS_SERVICE_PATH
not being set.
Homebrew provided an update for cmake
to 3.29.3 within the past couple of days. Unsure if this is the cause or there was something recently changed in config.h
since the cmake
build replaced autogen
/configure
and it just wasn't noticed until now.