fix bigobj under MSVC, fix yaml-cpp link. (#957)

This commit is contained in:
reito
2023-01-21 15:50:02 -08:00
committed by GitHub
parent 0e908206d0
commit 40ab33031b
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -106,6 +106,7 @@ if(MSVC)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP${N}")
endif()
endif()
add_compile_options("/bigobj")
endif()
# [Eclipse] Automatic Discovery of Include directories (Optional, but handy)
+2 -2
View File
@@ -45,11 +45,11 @@ SET(LIBRARIES
${YAML_CPP_LIBRARIES}
)
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${INCLUDE_DIRS} yaml-cpp)
ADD_EXECUTABLE(euroc_dataset main.cpp)
TARGET_LINK_LIBRARIES(euroc_dataset ${LIBRARIES})
TARGET_LINK_LIBRARIES(euroc_dataset ${LIBRARIES} yaml-cpp)
SET_TARGET_PROPERTIES( euroc_dataset
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-euroc_dataset)