Skip to content

Commit 66b53a5

Browse files
author
Murilo M. Marinho
committed
[CMakeLists.txt] Making sure compilation flags are only for UNIX as they do not work on WIN32.
1 parent ada4b36 commit 66b53a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ project(dqroboticspython)
99
set(CMAKE_CXX_STANDARD 17)
1010
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111

12-
add_compile_options(-Werror=return-type -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Woverloaded-virtual -fPIC)
12+
if(UNIX)
13+
add_compile_options(-Werror=return-type -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Woverloaded-virtual -fPIC)
14+
endif()
1315

1416
if(APPLE)
1517
message("Building not supported on this platform.")

0 commit comments

Comments
 (0)