Skip to content

Commit

Permalink
update CXX compiler from 11 to 14 (pytorch#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxzy authored and soumith committed Jan 6, 2020
1 parent 7d75f8a commit 2796747
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpp/dcgan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endif()

add_executable(dcgan dcgan.cpp)
target_link_libraries(dcgan "${TORCH_LIBRARIES}")
set_property(TARGET dcgan PROPERTY CXX_STANDARD 11)
set_property(TARGET dcgan PROPERTY CXX_STANDARD 14)

if (MSVC)
file(GLOB TORCH_DLLS "${TORCH_INSTALL_PREFIX}/lib/*.dll")
Expand Down
2 changes: 1 addition & 1 deletion cpp/regression/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.8)

project(regression)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)

find_package(Torch REQUIRED)

Expand Down
4 changes: 2 additions & 2 deletions cpp/transfer-learning/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ target_link_libraries(example "${TORCH_LIBRARIES}")
target_link_libraries(classify ${OpenCV_LIBS})
target_link_libraries(classify "${TORCH_LIBRARIES}")

set_property(TARGET classify PROPERTY CXX_STANDARD 11)
set_property(TARGET example PROPERTY CXX_STANDARD 11)
set_property(TARGET classify PROPERTY CXX_STANDARD 14)
set_property(TARGET example PROPERTY CXX_STANDARD 14)

0 comments on commit 2796747

Please sign in to comment.