Permalink
Browse files

Merge pull request #86 from junghans/cmake

cmake: fix error when TARGET_ARCHITECTURE is set
  • Loading branch information...
sscalpone committed Oct 13, 2017
2 parents 3e4d665 + 1e2ca41 commit db16a04d7573bf494797c595851cc5a409be11c2
Showing with 3 additions and 0 deletions.
  1. +3 −0 CMakeLists.txt
View
@@ -25,6 +25,9 @@ SET(CMAKE_Fortran_COMPILER_WORKS 1)
if( NOT DEFINED TARGET_ARCHITECTURE )
execute_process(COMMAND uname -m OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE TARGET_ARCHITECTURE)
endif()
if( NOT DEFINED TARGET_OS )
execute_process(COMMAND uname -s OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE TARGET_OS)
endif()

0 comments on commit db16a04

Please sign in to comment.