54 lines
1.8 KiB
Diff
54 lines
1.8 KiB
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -7,31 +7,6 @@
|
|
|
|
message(STATUS "Configuring hyprpicker!")
|
|
|
|
-# Get git info
|
|
-# hash and branch
|
|
-execute_process(
|
|
- COMMAND git rev-parse --abbrev-ref HEAD
|
|
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
- OUTPUT_VARIABLE GIT_BRANCH
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-
|
|
-execute_process(
|
|
- COMMAND git rev-parse HEAD
|
|
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
- OUTPUT_VARIABLE GIT_COMMIT_HASH
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-
|
|
-execute_process(
|
|
- COMMAND bash -c "git show ${GIT_COMMIT_HASH} | head -n 5 | tail -n 1"
|
|
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
- OUTPUT_VARIABLE GIT_COMMIT_MESSAGE
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
-
|
|
-execute_process(
|
|
- COMMAND bash -c "git diff-index --quiet HEAD -- || echo \"dirty\""
|
|
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
- OUTPUT_VARIABLE GIT_DIRTY
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
#
|
|
#
|
|
|
|
@@ -47,11 +22,6 @@
|
|
|
|
add_executable(hyprpicker ${SRCFILES})
|
|
|
|
-target_compile_definitions(hyprpicker PRIVATE "-DGIT_COMMIT_HASH=\"${GIT_COMMIT_HASH}\"")
|
|
-target_compile_definitions(hyprpicker PRIVATE "-DGIT_BRANCH=\"${GIT_BRANCH}\"")
|
|
-target_compile_definitions(hyprpicker PRIVATE "-DGIT_COMMIT_MESSAGE=\"${GIT_COMMIT_MESSAGE}\"")
|
|
-target_compile_definitions(hyprpicker PRIVATE "-DGIT_DIRTY=\"${GIT_DIRTY}\"")
|
|
-
|
|
target_link_libraries(hyprpicker rt)
|
|
|
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|
@@ -75,4 +45,4 @@
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg -no-pie -fno-builtin")
|
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg -no-pie -fno-builtin")
|
|
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pg -no-pie -fno-builtin")
|
|
-ENDIF(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|
|
\ No newline at end of file
|
|
+ENDIF(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|