Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
  • Loading branch information
geofjamg committed Jul 20, 2023
1 parent cfc0ce6 commit 914feab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
set(MATH_NATIVE_INSTALL_EXTRA_COMMAND COMMAND install_name_tool -id @loader_path/${POWSYBL_MATH_NATIVE_LIB} ${CMAKE_CURRENT_BINARY_DIR}/${POWSYBL_MATH_NATIVE_JAR_ENTRY_DIR}/${POWSYBL_MATH_NATIVE_LIB})
endif()

if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(MVNW_COMMAND mvnw.cmd)
else()
set(MVNW_COMMAND ./mvnw)
endif()

ExternalProject_Add(mvn
SOURCE_DIR ${PYPOWSYBL_JAVA_SRC_DIR}
PATCH_COMMAND ./mvnw --batch-mode clean package
PATCH_COMMAND ${MVNW_COMMAND} --batch-mode clean package
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
Expand Down

0 comments on commit 914feab

Please sign in to comment.