cmake: Fix SWIG_FLAGS when enabling several languages

This commit is contained in:
Mizux Seiha
2020-04-09 17:13:17 +02:00
parent 548497a708
commit b903560395
3 changed files with 5 additions and 0 deletions

View File

@@ -6,6 +6,8 @@ if(NOT TARGET ortools::ortools)
message(FATAL_ERROR ".Net: missing ortools TARGET")
endif()
# Will need swig
set(CMAKE_SWIG_FLAGS)
find_package(SWIG)
include(UseSWIG)

View File

@@ -6,6 +6,8 @@ if(NOT TARGET ortools::ortools)
message(FATAL_ERROR "Java: missing ortools TARGET")
endif()
# Will need swig
set(CMAKE_SWIG_FLAGS)
find_package(SWIG REQUIRED)
include(UseSWIG)

View File

@@ -10,6 +10,7 @@ if(NOT TARGET ortools::ortools)
endif()
# Will need swig
set(CMAKE_SWIG_FLAGS)
find_package(SWIG REQUIRED)
include(UseSWIG)