This repository was archived by the owner on Nov 30, 2022. It is now read-only.
File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ if(NOT CMAKE_CXX_STANDARD)
14
14
endif ()
15
15
if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
16
16
add_compile_options (-Wall -Wextra -Wpedantic -Werror)
17
+ elseif (MSVC )
18
+ # Suppress all compiler warning for Windows build
19
+ add_compile_options (/w)
17
20
endif ()
18
21
19
22
## Define vendor macro
@@ -50,14 +53,18 @@ macro(build_mcap_vendor)
50
53
)
51
54
ament_target_dependencies(mcap zstd)
52
55
56
+ ament_export_include_directories(include /${PROJECT_NAME} )
57
+ ament_export_targets(export_mcap HAS_LIBRARY_TARGET)
58
+ ament_export_dependencies(zstd_vendor zstd)
59
+
53
60
install (
54
61
DIRECTORY ${_mcap_include_dir} /mcap
55
62
DESTINATION include /${PROJECT_NAME}
56
63
)
57
64
58
65
install (
59
66
TARGETS mcap
60
- EXPORT mcap
67
+ EXPORT export_mcap
61
68
ARCHIVE DESTINATION lib
62
69
LIBRARY DESTINATION lib
63
70
RUNTIME DESTINATION bin
@@ -67,9 +74,5 @@ endmacro()
67
74
## Call vendor macro
68
75
build_mcap_vendor()
69
76
70
- ament_export_include_directories(include /${PROJECT_NAME} )
71
- ament_export_targets(mcap HAS_LIBRARY_TARGET)
72
- ament_export_dependencies(zstd_vendor zstd)
73
-
74
77
## Package
75
78
ament_package()
You can’t perform that action at this time.
0 commit comments