mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 12:03:48 -07:00
CMake: print pch messages based on var
This commit is contained in:
@@ -216,10 +216,13 @@ set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|||||||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
|
||||||
message(STATUS "Setting precompiled headers")
|
if(CMAKE_DISABLE_PRECOMPILE_HEADERS)
|
||||||
|
message(STATUS "Not using precompiled headers")
|
||||||
target_precompile_headers(Hyprland PRIVATE
|
else()
|
||||||
|
message(STATUS "Setting precompiled headers")
|
||||||
|
target_precompile_headers(Hyprland PRIVATE
|
||||||
$<$<COMPILE_LANGUAGE:CXX>:src/pch/pch.hpp>)
|
$<$<COMPILE_LANGUAGE:CXX>:src/pch/pch.hpp>)
|
||||||
|
endif()
|
||||||
|
|
||||||
message(STATUS "Setting link libraries")
|
message(STATUS "Setting link libraries")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user