aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-04-07 08:45:19 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-04-07 08:45:19 +0200
commitc2624c03189562208a8e839b8a60291b763c8f44 (patch)
treeb5e408de84692dc3ffc4bacdd0e042905944d1f3 /cmake
parent2f833b1c6438fb379e05f12e3111c30c0b2f3416 (diff)
Fix cmake scripts with no fortran compiler
Diffstat (limited to 'cmake')
-rw-r--r--cmake/language_support.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/language_support.cmake b/cmake/language_support.cmake
index 2f14f30b8..ddba50945 100644
--- a/cmake/language_support.cmake
+++ b/cmake/language_support.cmake
@@ -26,7 +26,7 @@ function(workaround_9220 language language_works)
cmake_minimum_required(VERSION 2.8.0)
set (CMAKE_Fortran_FLAGS \"${CMAKE_Fortran_FLAGS}\")
set (CMAKE_EXE_LINKER_FLAGS \"${CMAKE_EXE_LINKER_FLAGS}\")
- enable_language(${language} OPTIONAL)
+ enable_language(${language})
")
file(REMOVE_RECURSE ${CMAKE_BINARY_DIR}/language_tests/${language})
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/language_tests/${language})