Skip to content
Snippets Groups Projects
Commit 427bb262 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Attempt to reduce cmake warnings in windows

parent d7d19beb
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28463 failed
......@@ -315,6 +315,7 @@ enable_language(CUDA)
if (NOT WIN32)
set(CMAKE_CUDA_FLAGS "-Xcompiler -fPIC")
endif()
set(CMAKE_CUDA_ARCHITECTURES OFF)
set(CMAKE_CUDA_FLAGS_DEBUG "--gpu-architecture=compute_61 -g -DDEBUG -D_DEBUG")
set(CMAKE_CUDA_FLAGS_RELEASE "--gpu-architecture=compute_61")
set(HAVE_CUDA TRUE)
......
......@@ -25,6 +25,8 @@ target_include_directories(OpenCVCodec PUBLIC
$<TARGET_PROPERTY:ftlcommon,INTERFACE_INCLUDE_DIRECTORIES>
)
set_property(TARGET OpenCVCodec PROPERTY CUDA_ARCHITECTURES OFF)
set(CODECSRC
$<TARGET_OBJECTS:BaseCodec>
$<TARGET_OBJECTS:OpenCVCodec>
......@@ -45,6 +47,8 @@ target_include_directories(NvidiaCodec PUBLIC
)
list(APPEND CODECSRC $<TARGET_OBJECTS:NvidiaCodec>)
set_property(TARGET NvidiaCodec PROPERTY CUDA_ARCHITECTURES OFF)
add_library(ftlcodecs ${CODECSRC})
if (WIN32)
......@@ -65,6 +69,8 @@ target_link_libraries(ftlcodecs ftlcommon ${OpenCV_LIBS} ${CUDA_LIBRARIES} Eigen
target_precompile_headers(ftlcodecs REUSE_FROM ftlcommon)
set_property(TARGET ftlcodecs PROPERTY CUDA_ARCHITECTURES OFF)
if (BUILD_TESTS)
add_subdirectory(test)
endif()
......
......@@ -35,6 +35,8 @@ target_precompile_headers(ftlcommon
PRIVATE include/ftl/cuda_common.hpp
)
set_property(TARGET ftlcommon PROPERTY CUDA_ARCHITECTURES OFF)
if (BUILD_TESTS)
add_subdirectory(test)
endif()
......
......@@ -14,6 +14,8 @@ target_precompile_headers(ftldata
PRIVATE include/ftl/data/new_frameset.hpp
)
set_property(TARGET ftldata PROPERTY CUDA_ARCHITECTURES OFF)
if (BUILD_TESTS)
add_subdirectory(test)
endif()
......
......@@ -25,6 +25,8 @@ else()
CUDA_ADD_LIBRARY(sgm stereo_sgm.cpp ${STEREOSRCS} STATIC)
endif()
set_property(TARGET sgm PROPERTY CUDA_ARCHITECTURES OFF)
install(
TARGETS sgm
ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment