Skip to content

Commit

Permalink
Windows build fix: #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Artiom N. authored and artiomn committed Dec 4, 2024
1 parent 41ee197 commit c6a1c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion knp/devices-library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ set(${PROJECT_NAME}_PUBLIC_INCLUDE_DIR "knp/devices")

if ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86.*")
set(${PROJECT_NAME}_CPU_SOURCE impl/x86_cpu.cpp impl/x86_cpu_power.cpp impl/x86_cpu_power.h)
set(${PROJECT_NAME}_ADD_LINK_LIBRARIES PCM_STATIC)
else()
message(WARNING "This CPU is unknown and not totally supported.")
set(${PROJECT_NAME}_CPU_SOURCE impl/unknown_cpu.cpp)
Expand All @@ -47,7 +48,7 @@ knp_add_library("${PROJECT_NAME}-cpu"
include/${${PROJECT_NAME}_PUBLIC_INCLUDE_DIR}/cpu.h

LINK_PRIVATE
spdlog::spdlog PCM_STATIC
spdlog::spdlog ${${PROJECT_NAME}_ADD_LINK_LIBRARIES}
KNP::Core
ALIAS KNP::Devices::CPU
)
Expand Down

0 comments on commit c6a1c7a

Please sign in to comment.