about summary refs log tree commit diff
path: root/third_party/glog/cmake/TestInitPackageConfig.cmake
blob: 6cb11ccf2977becb8b04da2795f7c912eb8765b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# Create the build directory
execute_process (
  COMMAND ${CMAKE_COMMAND} -E make_directory ${TEST_BINARY_DIR}
  RESULT_VARIABLE _DIRECTORY_CREATED_SUCCEEDED
)

if (NOT _DIRECTORY_CREATED_SUCCEEDED EQUAL 0)
  message (FATAL_ERROR "Failed to create build directory")
endif (NOT _DIRECTORY_CREATED_SUCCEEDED EQUAL 0)

file (WRITE ${INITIAL_CACHE} "${CACHEVARS}")