Skip to content

Commit

Permalink
Merge branch 'nanobind' into nanobind-cluster-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Sep 30, 2024
2 parents 3b74b53 + 8717edf commit 92e92d9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.15...3.30)

project(freud)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(DEFAULT_BUILD_TYPE "Release")

Expand Down Expand Up @@ -84,8 +85,10 @@ include_directories(
add_subdirectory(freud)

# enable compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON FORCE)
if(NOT WIN32)
file(CREATE_LINK "${CMAKE_BINARY_DIR}/compile_commands.json"
"${CMAKE_SOURCE_DIR}/compile_commands.json" SYMBOLIC)
if (NOT WIN32)
file(CREATE_LINK
"${CMAKE_BINARY_DIR}/compile_commands.json"
"${CMAKE_SOURCE_DIR}/compile_commands.json"
SYMBOLIC
)
endif()

0 comments on commit 92e92d9

Please sign in to comment.