diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2016-10-10 16:02:52 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2016-10-10 16:02:52 +0300 |
commit | 0d4b58712262a05498a42656fbd6a413a7652036 (patch) | |
tree | 020061ffc0bdbac5ab1c7f4095c32a0bfc45abce /CMakeLists.txt | |
parent | 58ca1165579b62143c808db186c05152497b8432 (diff) | |
parent | 34f9c5b9eea4c39f5ad357e12fe428206254ca9b (diff) |
Merge branch 'master' of https://github.com/emjotde/amunmt
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5201d1b7..95d13e6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,12 +8,12 @@ SET(CMAKE_CXX_FLAGS " -std=c++14 -m64 -flto -march=native -fPIC -g -O3 -Ofast -f include_directories(${amunmt_SOURCE_DIR}) -set(NOCUDA OFF CACHE BOOL "Compile without CUDA") +set(CUDA ON CACHE BOOL "Compile without CUDA") -if(NOCUDA) +if(NOT CUDA) message("-- Forcing compilation without CUDA.") add_definitions(-DNO_CUDA) -else(NOCUDA) +else(NOT CUDA) find_package(CUDA) if(CUDA_FOUND) LIST(APPEND CUDA_NVCC_FLAGS --default-stream per-thread; -std=c++11; -g; -O3; -arch=sm_35; -lineinfo; --use_fast_math;) @@ -24,7 +24,7 @@ else(CUDA_FOUND) add_definitions(-DNO_CUDA) message("Cannot find CUDA libraries. Compiling without them." ) endif(CUDA_FOUND) -endif(NOCUDA) +endif(NOT CUDA) find_package(Boost COMPONENTS system filesystem program_options timer iostreams python thread) if(Boost_FOUND) |