[cmake] specify compilers in installed CMakeLists.txt
otherwise detected flags don't match if selected compiler differs from
default compiler (e.g. compiled siconos with clang on ubuntu)
@@ -70,6 +70,11 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE @CMAKE_BUILD_TYPE@)
endif()
+# compiler selection : same as @PROJECT_NAME@ install
+set(CMAKE_CXX_COMPILER "@CMAKE_CXX_COMPILER@")
+set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@")
+set(CMAKE_Fortran_COMPILER "@CMAKE_Fortran_COMPILER@")
+
# compile time flags : same as @PROJECT_NAME@ install
set(CMAKE_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
set(CMAKE_C_FLAGS "@CMAKE_C_FLAGS@")
