Skip to content

Commit

Permalink
run workflow without cmaes
Browse files Browse the repository at this point in the history
  • Loading branch information
phbasler committed Aug 11, 2024
1 parent c38bf0c commit aa031ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/conan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ jobs:
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install conan
run: pip install conan>2

- name: Build without cmaes
run: python3 Setup.py --create --build-missing --options UseLibCMAES=False

- run: python3 Setup.py --create --build-missing
2 changes: 0 additions & 2 deletions Setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ def conan_install(

if build_missing:
cmd += ["--build=missing"]
else:
cmd += ["--build=cmaes/0.10.0"]

print(f"Executing command {cmd}")

Expand Down
2 changes: 1 addition & 1 deletion src/minimizer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ target_sources(

if(cmaes_FOUND)
add_subdirectory(LibCMAES)
target_link_libraries(Minimizer PUBLIC Minimizer_CMAES)
target_link_libraries(Minimizer PRIVATE Minimizer_CMAES)
endif()

if(NLopt_FOUND)
Expand Down
1 change: 1 addition & 0 deletions tools/cmake/CMAES.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if(NOT libcmaes_FOUND)
option(LIBCMAES_BUILD_PYTHON OFF)
option(LIBCMAES_BUILD_EXAMPLES OFF)
option(LIBCMAES_USE_OPENMP OpenMP_FOUND)
option(LIBCMAES_BUILD_SHARED_LIBS OFF)
FetchContent_Populate(libcmaes)
add_subdirectory(${libcmaes_SOURCE_DIR} ${libcmaes_BINARY_DIR})
include(GenerateExportHeader)
Expand Down

0 comments on commit aa031ab

Please sign in to comment.