Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dafa94f

Browse files
Merge pull request BehaviorTree#67 from Masadow/patch-2
Improved MSVC compilation
2 parents 36e614e + f9840e4 commit dafa94f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ else()
88
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
99
endif()
1010

11+
if(MSVC)
12+
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
13+
endif()
14+
1115
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1216

1317
set(CMAKE_CONFIG_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake")

0 commit comments

Comments
 (0)