Skip to content

Commit bc17d9a

Browse files
authored
Merge pull request #92 from achalshah20/v1.8.0
stop propagating gcc flags to nvcc
2 parents 639cab2 + d21f3f6 commit bc17d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow_cc/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if(TENSORFLOW_SHARED)
5656
add_library(tensorflow_cc_shared INTERFACE)
5757
target_compile_options(
5858
tensorflow_cc_shared INTERFACE
59-
"-std=c++11"
59+
"$<$<COMPILE_LANGUAGE:CXX>:-std=c++11>"
6060
)
6161
add_dependencies(
6262
tensorflow_cc_shared
@@ -105,7 +105,7 @@ if(TENSORFLOW_STATIC)
105105
add_library(tensorflow_cc_static INTERFACE)
106106
target_compile_options(
107107
tensorflow_cc_static INTERFACE
108-
"-std=c++11"
108+
"$<$<COMPILE_LANGUAGE:CXX>:-std=c++11>"
109109
)
110110
add_dependencies(
111111
tensorflow_cc_static

0 commit comments

Comments
 (0)