mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 12:09:01 +08:00
32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
|
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(
|
||
|
$<$<CXX_COMPILER_ID:AppleClang>:-Wall -Wextra -Wfatal-errors>
|
||
|
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:Clang>>:-Wall -Wextra -Wfatal-errors>
|
||
|
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:GNU>>:-Wall -Wextra -Wfatal-errors>
|
||
|
- $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/W3 /permissive->
|
||
|
+ $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/bigobj /W3 /permissive->
|
||
|
#$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-Wall,-Wextra,-Wfatal-errors>
|
||
|
#$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -Wfatal-errors>
|
||
|
#$<$<CXX_COMPILER_ID:GNU>:-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)
|
||
|
# -----------------------------------------------------------------------------
|