Skip to content

Commit 96eb811

Browse files
authored
Use cmake_path to normalize paths (#933)
Signed-off-by: Hugo KULESZA <[email protected]>
1 parent 8cba4b6 commit 96eb811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/pypowsybl-java/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ macro(extract_and_install_native_lib jar_file jar_entry library_file)
4444
endif()
4545
endmacro()
4646

47-
set(math-native-jar ${PYPOWSYBL_JAVA_SRC_DIR}/target/dependency/powsybl-math-native.jar)
48-
set(ortools-jar ${PYPOWSYBL_JAVA_SRC_DIR}/target/dependency/ortools-${CMAKE_SYSTEM_NAME}-${ARCH_ID}.jar)
47+
cmake_path(SET math-native-jar "${PYPOWSYBL_JAVA_SRC_DIR}/target/dependency/powsybl-math-native.jar")
48+
cmake_path(SET ortools-jar "${PYPOWSYBL_JAVA_SRC_DIR}/target/dependency/ortools-${CMAKE_SYSTEM_NAME}-${ARCH_ID}.jar")
4949

5050
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
5151
extract_and_install_native_lib(${math-native-jar} natives/windows_${OS_BITS} math.dll)

0 commit comments

Comments
 (0)