Skip to content

Commit b44ce61

Browse files
committed
linux build fix
1 parent a7fa959 commit b44ce61

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

miner-app/linux/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ set(BINARY_NAME "quantus_miner")
99
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
1010
set(APPLICATION_ID "com.example.quantus_miner")
1111

12+
# Add preprocessor definitions for the application ID.
13+
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
14+
1215
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
1316
# versions of CMake.
1417
cmake_policy(SET CMP0063 NEW)

miner-app/linux/runner/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ add_executable(${BINARY_NAME}
1616
# that need different build settings.
1717
apply_standard_settings(${BINARY_NAME})
1818

19-
# Add preprocessor definitions for the application ID.
20-
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
21-
2219
# Add dependency libraries. Add any application-specific dependencies here.
2320
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
2421
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)

0 commit comments

Comments
 (0)