Commit 46971d81 authored by Christoph Richter's avatar Christoph Richter
Browse files

fixup! AutopilotAdapter cmake install options for windows

parent d172ec2b
Pipeline #81519 failed with stages
in 13 minutes and 58 seconds
......@@ -389,12 +389,6 @@ public class GeneratorCPP implements Generator {
// add jni
cmake.addCMakeCommand("find_package(JNI)");
cmake.addCMakeCommand("set(INCLUDE_DIRS ${INCLUDE_DIRS} ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})");
// set install dir
cmake.addCMakeCommand("IF (WIN32)");
cmake.addCMakeCommand("set(CMAKE_INSTALL_PREFIX $ENV{DLL_DIR})");
cmake.addCMakeCommand("ELSE()");
cmake.addCMakeCommand("set(CMAKE_INSTALL_PREFIX /usr/lib)");
cmake.addCMakeCommand("ENDIF()");
// create shared lib
cmake.addCMakeCommandEnd("add_library(AutopilotAdapter SHARED AutopilotAdapter.cpp ${CMAKE_CURRENT_SOURCE_DIR})");
cmake.addCMakeCommandEnd("target_include_directories(AutopilotAdapter PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment