diff options
| author | Nicolas PARLANT <nicolas.parlant@parhuet.fr> | 2026-02-25 17:19:32 +0100 |
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2026-02-25 17:19:32 +0100 |
| commit | 276f0aec07217d965f0f5675cace82db4d182098 (patch) | |
| tree | ced20897c857c342b868b79fbbef4974087c91c4 | |
| parent | e8914c63fbc82832577d9d57f0e87d5fc4de29f9 (diff) | |
| download | sensei-raw-ctl-master.tar.gz sensei-raw-ctl-master.tar.xz sensei-raw-ctl-master.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.txt | 3 |
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}) |
