diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bfb0f2..8a10971 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,13 +99,11 @@ message("---- MAGMA_LIBRARIES = ${MAGMA_LIBRARIES}" ) message("---- MAGMA_CFLAGS_OTHER = ${MAGMA_CFLAGS_OTHER}" ) target_include_directories(${LIBNAME} PUBLIC ${MAGMA_INCLUDE_DIRS}) target_link_libraries(${LIBNAME} PRIVATE ${MAGMA_LIBRARIES}) -target_compile_options(${LIBNAME} PRIVATE ${MAGMA_CFLAGS_OTHER}) +target_compile_options(${LIBNAME} PRIVATE $<$:${MAGMA_CFLAGS_OTHER}>) target_compile_options(${LIBNAME} PUBLIC -DHAVE_CUDA -DHAVE_MAGMA -DUSE_MAGMA) #target_compile_options(${LIBNAME} PUBLIC -DHAVE_CUDA -DHAVE_MAGMA -DUSE_MAGMA) endif(USE_MAGMA) - - if(USE_QDWHPARTIAL) message("---- QDWHPARTIAL_INCLUDE_PATH = ${QDWHPARTIAL_INCLUDE_PATH}") message("---- QDWHPARTIAL_LIBRARIES = ${QDWHPARTIAL_LIBRARIES}" )