Skip to content

Commit

Permalink
Updated minimal CMake version for CMP0091 policy instead
Browse files Browse the repository at this point in the history
  • Loading branch information
develancer committed May 14, 2024
1 parent 7407b19 commit 82c83cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
-DCMAKE_CXX_COMPILER=${{ runner.os == 'Windows' && 'cl' || 'g++' }}
-DCMAKE_C_COMPILER=${{ runner.os == 'Windows' && 'cl' || 'gcc' }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
${{ runner.os == 'Windows' && '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded' || '' }}
${{ runner.os == 'Linux' && '-DSTANDALONE=TRUE' || '' }}
-S ${{ github.workspace }}
Expand Down
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.15)
project(empi CXX C)
set(CMAKE_CXX_STANDARD 17)

Expand Down Expand Up @@ -100,9 +100,6 @@ else()
endif()

add_executable(empi src/special/empi.cpp)
if(NOT UNIX)
set_property(TARGET empi PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
endif()
install(TARGETS empi)
target_link_libraries(empi empi-cpu fftw3)
if(WITH_CUDA)
Expand Down

0 comments on commit 82c83cd

Please sign in to comment.