mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-23 06:38:43 +02:00
fix CMake
- fix wrong compare for HWLOC not found - remove usage of microhttpd variable if microhttpd is disabled
This commit is contained in:
+5
-2
@@ -361,7 +361,7 @@ if(HWLOC_ENABLE)
|
||||
PATH_SUFFIXES
|
||||
lib)
|
||||
|
||||
if("${HWLOC}" STREQUAL "MHTD-NOTFOUND" OR ${HWLOC_INCLUDE_DIR} STREQUAL "HWLOC_INCLUDE_DIR-NOTFOUND")
|
||||
if("${HWLOC}" STREQUAL "HWLOC-NOTFOUND" OR ${HWLOC_INCLUDE_DIR} STREQUAL "HWLOC_INCLUDE_DIR-NOTFOUND")
|
||||
message(FATAL_ERROR "hwloc NOT found: use `-DHWLOC_ENABLE=OFF` to build without hwloc support")
|
||||
else()
|
||||
set(LIBS ${LIBS} ${HWLOC})
|
||||
@@ -446,7 +446,10 @@ add_library(xmr-stak-c
|
||||
${SRCFILES_C}
|
||||
)
|
||||
set_property(TARGET xmr-stak-c PROPERTY C_STANDARD 99)
|
||||
target_link_libraries(xmr-stak-c ${MHTD} ${LIBS})
|
||||
if(MICROHTTPD_ENABLE)
|
||||
target_link_libraries(xmr-stak-c ${MHTD})
|
||||
endif()
|
||||
target_link_libraries(xmr-stak-c ${LIBS})
|
||||
|
||||
# compile generic backend files
|
||||
file(GLOB BACKEND_CPP
|
||||
|
||||
Reference in New Issue
Block a user