CMake: print pch messages based on var
This commit is contained in:
parent
4b55ec6830
commit
541ef60fd7
1 changed files with 7 additions and 4 deletions
|
|
@ -257,10 +257,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()
|
||||||
$<$<COMPILE_LANGUAGE:CXX>:src/pch/pch.hpp>)
|
message(STATUS "Setting precompiled headers")
|
||||||
|
target_precompile_headers(Hyprland PRIVATE
|
||||||
|
$<$<COMPILE_LANGUAGE:CXX>:src/pch/pch.hpp>)
|
||||||
|
endif()
|
||||||
|
|
||||||
message(STATUS "Setting link libraries")
|
message(STATUS "Setting link libraries")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue