diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-16 15:37:01 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-16 15:37:01 (GMT) |
commit | 7160ab5610d47e5752f653b85d891be2b7082540 (patch) | |
tree | f211c5dc3d9a0c3fb28e5bb7fc1f0ed3e3b9b6c3 /tests/CMakeLists.txt | |
parent | 1778047f77ea9513b28ee99b0cc64a24da42319f (diff) |
get pretty_printing working under MINGW cross build. update docs
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 58bf855..1352658 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -850,6 +850,10 @@ add_executable(test_pretty_print test_pretty_print.cc) set_target_properties(test_pretty_print PROPERTIES COMPILE_FLAGS "-DPYBIN=${PYTHON_EXECUTABLE} -DPYSRC=test_pretty_print.py -DBUILDDIR=--builddir=${CMAKE_CURRENT_BINARY_DIR}" ) +if (MINGW_CROSS_ENV_DIR) + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_pretty_print "wine test_pretty_print.exe") + execute_process(COMMAND chmod ugo+x ${CMAKE_CURRENT_BINARY_DIR}/test_pretty_print) +endif() file(READ ${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.template TMP) string(REPLACE __cmake_current_binary_dir__ ${CMAKE_CURRENT_BINARY_DIR} TMP ${TMP}) |