Skip to content

Commit

Permalink
specify dev headers and install location
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Oct 7, 2024
1 parent 5d6de04 commit 63c54a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SET(SRCS src/map2model.cpp
SET(SRCS_INCLUDE include)

# Find Python
find_package(Python COMPONENTS Development REQUIRED) # Ensure Python dev headers are installed
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(pybind11 CONFIG REQUIRED)

# Create the executable first
Expand Down Expand Up @@ -50,3 +50,4 @@ endif()
if (MSVC)
target_compile_options(map2model PRIVATE /W4)
endif()
install(TARGETS map2model DESTINATION ${CMAKE_INSTALL_PREFIX}/map2model)

0 comments on commit 63c54a6

Please sign in to comment.