aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorJan Beich <[email protected]>2023-05-02 13:38:36 +0000
committerGitHub <[email protected]>2023-05-02 14:38:36 +0100
commit609c7ab6b5af90de947b55999d6a8bee7d048382 (patch)
treee9d87edeb70e85fb0c56913b4272d89c94f6eb1d /hyprctl
parentc949173bc9c9f9e8276cba098cb82ed51ad4965b (diff)
downloadHyprland-609c7ab6b5af90de947b55999d6a8bee7d048382.tar.gz
Hyprland-609c7ab6b5af90de947b55999d6a8bee7d048382.zip
Unbreak CMake build on FreeBSD (#2209)
* cmake: unbreak on non-GNU after 474ada9267cc CMake Error at CMakeLists.txt:121 (target_link_libraries): The keyword signature for target_link_libraries has already been used with the target "Hyprland". All uses of target_link_libraries with a target must be either all-keyword or all-plain. The uses of the keyword signature are here: * CMakeLists.txt:107 (target_link_libraries) Fixes https://github.com/hyprwm/Hyprland/issues/1780 * cmake: always link with dependencies via imported targets On BSD systems base compiler by default only looks for headers and libraries from base system. For dependencies from packages extra flags are necessary. ld: error: unable to find library -lxcb ld: error: unable to find library -lpixman-1 ld: error: unable to find library -lOpenGL ld: error: unable to find library -lGLESv2 * make: use same make in recursive calls On BSDs `make` is BSD make while `gmake` is GNU make * make: work around GNU vs. BSD sed -i incompatibility https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254091 * make: replace GNU make extension with POSIX sh `$(shell ...)` in GNU make is similar to `${:!..!}` in BSD make * make: fall back when nproc isn't available Only FreeBSD added nproc for compatibility with Linux. * make: unbreak hyprctl on Clang-based systems /bin/sh: g++: not found error: invalid value 'c++23' in '-std=c++23' * make: create lib/ before copying libwlroots.so there $ make install PREFIX=/tmp/test [...] cp: directory /tmp/test/lib does not exist * make: pass cp(1) flags before arguments cp: -f is not a directory * make: replace install -Dt with mkdir install: illegal option -- t * make: replace cp --parents with cpio -dump cp: illegal option -- - * make: limit pkg-config workaround to Linux when run as root /usr/share/pkgconfig doesn't exist on BSDs or may not be writable.
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprctl/Makefile b/hyprctl/Makefile
index cd1df201..ec819918 100644
--- a/hyprctl/Makefile
+++ b/hyprctl/Makefile
@@ -1,4 +1,4 @@
all:
- g++ -std=c++23 ./main.cpp -o ./hyprctl
+ $(CXX) -std=c++2b ./main.cpp -o ./hyprctl
clean:
rm ./hyprctl