aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas PARLANT <nicolas.parlant@parhuet.fr>2026-02-25 17:19:32 +0100
committerPřemysl Eric Janouch <p@janouch.name>2026-02-25 17:19:32 +0100
commit276f0aec07217d965f0f5675cace82db4d182098 (patch)
treeced20897c857c342b868b79fbbef4974087c91c4
parente8914c63fbc82832577d9d57f0e87d5fc4de29f9 (diff)
downloadsensei-raw-ctl-origin/HEAD.tar.gz
sensei-raw-ctl-origin/HEAD.tar.xz
sensei-raw-ctl-origin/HEAD.zip
Fix gtk3_CFLAGS_OTHER using target_compile_optionsHEADorigin/masterorigin/HEADmaster
Otherwise the flags are not passed correctly x86_64-pc-linux-gnu-gcc: fatal error: no input files compilation terminated. /bin/sh: line 1: -DWITH_GZFILEOP: command not found
-rw-r--r--CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52919cb..96bc030 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,8 +45,7 @@ if (BUILD_GUI)
DESTINATION ${CMAKE_INSTALL_DATADIR}/polkit-1/actions)
add_executable (${PROJECT_NAME}-gui ${PROJECT_NAME}-gui.c ${ui_out})
- set_target_properties (${PROJECT_NAME}-gui PROPERTIES
- COMPILE_FLAGS "${gtk3_CFLAGS_OTHER}")
+ target_compile_options (${PROJECT_NAME}-gui PRIVATE ${gtk3_CFLAGS_OTHER})
target_link_libraries (${PROJECT_NAME}-gui ${gtk3_LIBRARIES})
install (TARGETS ${PROJECT_NAME}-gui
DESTINATION ${CMAKE_INSTALL_BINDIR})