Skip to content

Commit

Permalink
Fixed compilation with MSVC if Fortran can not be found
Browse files Browse the repository at this point in the history
  • Loading branch information
rainman110 committed Sep 5, 2016
1 parent 5cbeb5f commit 6213add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/fortran03/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if(PYTHONINTERP_FOUND AND NOT PYTHON_VERSION_STRING VERSION_LESS "2.5" )
DEPENDS ${LIBRARY_OUTPUT_PATH}/tixi.f90
)

if(TIXI_BUILD_TESTS AND NOT CMAKE_Fortran_COMPILER STREQUAL CMAKE_Fortran_COMPILER-NOTFOUND)
if(TIXI_BUILD_TESTS AND NOT CMAKE_Fortran_COMPILER STREQUAL CMAKE_Fortran_COMPILER-NOTFOUND AND CMAKE_Fortran_COMPILER)
enable_language(Fortran)
link_directories(${LIBRARY_OUTPUT_PATH})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../../tests)
Expand Down
2 changes: 1 addition & 1 deletion examples/fortran77/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# only build, if fortran compiler was found before
if(NOT CMAKE_Fortran_COMPILER STREQUAL CMAKE_Fortran_COMPILER-NOTFOUND)
if(NOT CMAKE_Fortran_COMPILER STREQUAL CMAKE_Fortran_COMPILER-NOTFOUND AND CMAKE_Fortran_COMPILER)
enable_language(Fortran)

# copy xml files
Expand Down

0 comments on commit 6213add

Please sign in to comment.