Skip to content

Commit

Permalink
fixes 1215: execute_process(COMMAND mkdir ${DIR}) fails to create a d…
Browse files Browse the repository at this point in the history
…irectory with cmake on Windows (facebook#1219)

CMake - Use a platform-neutral mkdir function
  • Loading branch information
Alexander Jipa authored and adamretter committed Aug 17, 2016
1 parent 3981345 commit 0b63f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ set(JAVA_ASSERTJ_JAR ${JAVA_TEST_LIBDIR}/assertj-core-1.7.1.jar)
set(JAVA_TESTCLASSPATH "${JAVA_JUNIT_JAR}\;${JAVA_HAMCR_JAR}\;${JAVA_MOCKITO_JAR}\;${JAVA_CGLIB_JAR}\;${JAVA_ASSERTJ_JAR}")

if(NOT EXISTS ${PROJECT_SOURCE_DIR}/java/classes)
execute_process(COMMAND mkdir ${PROJECT_SOURCE_DIR}/java/classes)
file(MAKE_DIRECTORY ${PROJECT_SOURCE_DIR}/java/classes)
endif()

if(NOT EXISTS ${JAVA_TEST_LIBDIR})
execute_process(COMMAND mkdir ${JAVA_TEST_LIBDIR})
file(MAKE_DIRECTORY mkdir ${JAVA_TEST_LIBDIR})
endif()

if(NOT EXISTS ${JAVA_JUNIT_JAR})
Expand Down

0 comments on commit 0b63f51

Please sign in to comment.