From 6b896a38dcf774d0eee241b2d8696cae8c41681b Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:57:34 +0200 Subject: [PATCH] [build] Don't enforce WITH_FLAT_INSTALL with MSVC (part 2) (#5517) --- wpilibNewCommands/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpilibNewCommands/CMakeLists.txt b/wpilibNewCommands/CMakeLists.txt index 716c5080c7..dc218fa064 100644 --- a/wpilibNewCommands/CMakeLists.txt +++ b/wpilibNewCommands/CMakeLists.txt @@ -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)