Selaa lähdekoodia

BUG: Fix location of CMakeOutput.log and CMakeError.log.

Brad King 19 vuotta sitten
vanhempi
sitoutus
e61eac3f05
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Source/kwsys/kwsysPlatformCxxTests.cmake

+ 2 - 2
Source/kwsys/kwsysPlatformCxxTests.cmake

@@ -8,11 +8,11 @@ MACRO(KWSYS_PLATFORM_CXX_TEST var description invert)
       OUTPUT_VARIABLE OUTPUT)
     IF(${var}_COMPILED)
       FILE(APPEND 
-        ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
+        ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
         "${description} compiled with the following output:\n${OUTPUT}\n\n")
     ELSE(${var}_COMPILED)
       FILE(APPEND 
-        ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
+        ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
         "${description} failed to compile with the following output:\n${OUTPUT}\n\n")
     ENDIF(${var}_COMPILED)
     IF(${invert} MATCHES INVERT)