diff --git a/CMakeLists.txt b/CMakeLists.txt index 9beec931..6782f1d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,7 @@ target_compile_options( $<$:-Wall -Wextra -Wfatal-errors> $<$,$>:-Wall -Wextra -Wfatal-errors> $<$,$>:-Wall -Wextra -Wfatal-errors> - $<$,$>:/W3 /permissive-> + $<$,$>:/bigobj /W3 /permissive-> #$<$:-Xcompiler=-Wall,-Wextra,-Wfatal-errors> #$<$:-Wall -Wextra -Wfatal-errors> #$<$:-Wall -Wextra -Wfatal-errors> @@ -219,6 +219,8 @@ target_include_directories(${PROJECT_NAME} INTERFACE # Example program # ----------------------------------------------------------------------------- +if(BUILD_TEST) + message(STATUS "Building examples ...") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_EXAMPLE_DIR}) @@ -617,6 +619,8 @@ add_test(cuda_kmeans.1000.16C16G ${TF_UTEST_CUDA_KMEANS} -tc=kmeans.1000.16C16G) endif(CMAKE_CUDA_COMPILER) +endif() + # ----------------------------------------------------------------------------- # Benchmarking (enabled by TF_BUILD_BENCHMARKS) # -----------------------------------------------------------------------------