[build] Don't enforce WITH_FLAT_INSTALL with MSVC (part 2) (#5517)

This commit is contained in:
autoantwort
2023-08-07 17:57:34 +02:00
committed by GitHub
parent c01814b80e
commit 6b896a38dc

View File

@@ -42,7 +42,7 @@ target_include_directories(wpilibNewCommands PUBLIC
install(TARGETS wpilibNewCommands EXPORT wpilibNewCommands DESTINATION "${main_lib_dest}")
install(DIRECTORY src/main/native/include/ DESTINATION "${include_dest}/wpilibNewCommands")
if (MSVC OR FLAT_INSTALL_WPILIB)
if (FLAT_INSTALL_WPILIB)
set(wpilibNewCommands_config_dir ${wpilib_dest})
else()
set(wpilibNewCommands_config_dir share/wpilibNewCommands)